feat: grant a new plugin or connector to everyone by default — the admin's job is now removal, not distribution
Nightly Build / build (push) Successful in 7m23s
Nightly Build / build (push) Successful in 7m23s
The grant junctions (plugin_access, mcp_global_access, mcp_catalog_access)
stay deny-by-default internally, but the rows are written for you at two
moments and never again:
— an object is CREATED: PluginManager::update_config (first toggle —
the plugins row's birth), mcp::catalog_upsert, marketplace install,
mcp::global_enable
— a user is CREATED: UserManager::register_user
Who is included is the role attrs.auto_grant flag (default true, so every
role predating the attribute behaves like an adult member). The seeded
Children preset sets it to false, which is the whole reason the attribute
exists. Admins are skipped because they hold everything implicitly. The
role editor now exposes the switch as a checkbox.
New crate module: db::access_defaults (seed_new_object, seed_new_user,
set_grant_by_default). Additive columns: grant_by_default on plugins,
mcp_catalog, mcp_global_servers (INTEGER NOT NULL DEFAULT 1).
On the frontend the Roles page gets a "New extensions" column and
checklist; the user's plugin/connector rosters are unchanged. i18n:
en, fr, it.
Docs: new docs/access.md for the assistant, plus index.md cross-link.
CLAUDE.md updated with a full default-access section.
This commit is contained in:
@@ -700,9 +700,12 @@ export default {
|
||||
'roles.col.group': 'Gruppo di permessi',
|
||||
'roles.col.interface': 'Interfaccia',
|
||||
'roles.col.assistant': 'Assistente',
|
||||
'roles.col.auto_grant': 'Nuove estensioni',
|
||||
|
||||
'roles.badge.simple': 'Semplice',
|
||||
'roles.badge.full': 'Completa',
|
||||
'roles.badge.auto_grant_on': 'Automatiche',
|
||||
'roles.badge.auto_grant_off': 'Su richiesta',
|
||||
|
||||
'roles.form.new': 'Nuovo ruolo',
|
||||
'roles.form.edit': 'Modifica {name}',
|
||||
@@ -721,6 +724,9 @@ export default {
|
||||
'roles.form.assistant': 'Assistente predefinito',
|
||||
'roles.form.assistant_default': 'Predefinito (Assistente)',
|
||||
'roles.form.assistant_hint': 'L\'agente con cui i membri di questo ruolo parlano di default. In futuro sovrascrivibile per persona.',
|
||||
'roles.form.auto_grant': 'Nuovi plugin e connettori',
|
||||
'roles.form.auto_grant_label': 'Assegnali automaticamente a questo ruolo',
|
||||
'roles.form.auto_grant_hint': 'Se attivo, un plugin o connettore che installi arriva subito a questo ruolo e lo togli dalla pagina della singola persona. Disattivalo per i ruoli che devono ricevere solo ci\u00f2 che dai tu \u2014 bambini, ospiti. Gli accessi gi\u00e0 concessi non vengono toccati da questa opzione.',
|
||||
'roles.form.attrs': 'Attrs',
|
||||
'roles.form.attrs_hint': '(JSON, opzionale)',
|
||||
'roles.form.attrs_ph': '{}',
|
||||
|
||||
Reference in New Issue
Block a user