Granting was a checklist of every user on each plugin's page, so "what may
this person use?" meant opening every plugin in turn — and the answer lived
on N pages while the connector half of it already lived on one. Both grant
sections now sit together on #users/{id}: same row list, same disabled chip,
same replace-the-whole-set save. The plugin's own page keeps a read-only
roster of who holds it, linking back to each person.
- db: plugin_access::set_for_user, the per-user twin of set_for_user on
mcp_catalog_access; set_access stays as the inverse read model
- PluginManager: list_grants_for_user / set_grants_for_user, which omit and
reject manages_own_access plugins (a box that controls nothing is worse
than no box)
- GET/PUT /api/users/{id}/plugins, mounted next to /users/{id}/connectors;
PUT /api/plugins/{id}/access is gone, GET remains as the roster
No push after the write, unlike a connector grant: that one gates a runtime
snapshotted at login, while a plugin grant is re-read from plugin_access on
every request that depends on it (sidebar pages, /plugins/mine, and each
inbound channel message), so a revoke lands with no bus event.
Docs updated with where access is granted, and why mobile-connector is
absent from that list.
This commit is contained in:
+8
-3
@@ -882,9 +882,9 @@ export default {
|
||||
'plugin_page.loading': 'Caricamento…',
|
||||
'plugin_page.unavailable': 'Pagina non disponibile (plugin disabilitato o pagina non concessa).',
|
||||
'plugins.badge.user_page': 'pagina utente',
|
||||
'plugins.access.desc': "Seleziona chi può vedere e configurare questo plugin. Il salvataggio sostituisce l'intera lista.",
|
||||
'plugins.access.empty': 'Nessun utente.',
|
||||
'plugins.access.save': 'Salva accesso',
|
||||
'plugins.access.desc': "Chi può vedere e usare questo plugin. L'accesso si concede dalla pagina della singola persona, accanto ai suoi connettori. Gli amministratori hanno sempre accesso.",
|
||||
'plugins.access.nobody': 'Nessuno ha ancora accesso a questo plugin.',
|
||||
'plugins.access.manage': 'Gestisci gli accessi da Utenti',
|
||||
'plugins.error.required': '"{field}" è obbligatorio.',
|
||||
'plugins.catalog.configure': 'Configura',
|
||||
'plugins.health.ok': 'attivo',
|
||||
@@ -1052,6 +1052,7 @@ export default {
|
||||
'users.detail.back': 'Utenti',
|
||||
'users.detail.profile': 'Profilo',
|
||||
'users.detail.connectors': 'Connettori',
|
||||
'users.detail.plugins': 'Plugin',
|
||||
'users.detail.security': 'Sicurezza',
|
||||
'users.detail.saved': 'Salvato',
|
||||
'users.detail.delete_hint': 'Elimina questo utente, il suo database e tutta la cronologia delle conversazioni.',
|
||||
@@ -1064,6 +1065,10 @@ export default {
|
||||
'users.conn.empty': 'Nessun connettore ancora registrato.',
|
||||
'users.conn.disabled': 'disabilitato',
|
||||
|
||||
'users.plug.hint': "Seleziona i plugin che questo utente può vedere e usare. Un plugin disabilitato può essere concesso ora: comparirà appena lo abiliti.",
|
||||
'users.plug.empty': 'Nessun plugin disponibile.',
|
||||
'users.plug.admin_note': 'Gli amministratori possono usare qualsiasi plugin abilitato, indipendentemente da ciò che è selezionato qui.',
|
||||
|
||||
'users.modal.create_title': 'Nuovo utente',
|
||||
'users.modal.username': 'Nome utente',
|
||||
'users.modal.display_name': 'Nome visualizzato',
|
||||
|
||||
Reference in New Issue
Block a user