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': 'Permission group',
|
||||
'roles.col.interface': 'Interface',
|
||||
'roles.col.assistant': 'Assistant',
|
||||
'roles.col.auto_grant': 'New extensions',
|
||||
|
||||
'roles.badge.simple': 'Simple',
|
||||
'roles.badge.full': 'Full',
|
||||
'roles.badge.auto_grant_on': 'Automatic',
|
||||
'roles.badge.auto_grant_off': 'On request',
|
||||
|
||||
'roles.form.new': 'New role',
|
||||
'roles.form.edit': 'Edit {name}',
|
||||
@@ -721,6 +724,9 @@ export default {
|
||||
'roles.form.assistant': 'Default assistant',
|
||||
'roles.form.assistant_default': 'Default (Assistant)',
|
||||
'roles.form.assistant_hint': 'The agent members of this role chat with by default. Overridable per person later.',
|
||||
'roles.form.auto_grant': 'New plugins and connectors',
|
||||
'roles.form.auto_grant_label': 'Give them to this role automatically',
|
||||
'roles.form.auto_grant_hint': 'When on, a plugin or connector you install reaches this role straight away and you take it back on each person\u2019s page. Turn it off for roles that should only get what you hand them \u2014 children, guests. Existing access is never changed by this switch.',
|
||||
'roles.form.attrs': 'Attrs',
|
||||
'roles.form.attrs_hint': '(JSON, optional)',
|
||||
'roles.form.attrs_ph': '{}',
|
||||
|
||||
Reference in New Issue
Block a user