Skip to content

Commit 21779d8

Browse files
committed
fix(rbac): make plugin::magic-sessionmanager.access visible in role editor
The Access permission was registered without a subCategory. Strapi 5's role editor only renders checkboxes for actions that belong to a subCategory, so the permission was invisible in Settings → Roles → Plugins → Session Manager — the panel showed no checkboxes at all and admins had no way to grant or revoke access. Added subCategory: General so the checkbox now renders. Existing roles keep whatever state they had.
1 parent 9e03731 commit 21779d8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

server/src/register.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ module.exports = async ({ strapi }) => {
2727
section: 'plugins',
2828
displayName: 'Access the Session Manager plugin',
2929
uid: 'access',
30+
// Strapi 5's role editor only renders checkboxes for actions that
31+
// belong to a subCategory. Without this field the permission
32+
// exists but is invisible in Settings → Roles → Plugins → Session
33+
// Manager, so admins cannot grant or revoke it.
34+
subCategory: 'General',
3035
pluginName: 'magic-sessionmanager',
3136
},
3237
]);

0 commit comments

Comments
 (0)