Skip to content

Commit fc79dae

Browse files
committed
feat(rbac): extend dashboard admin permissions
- Add user management permissions (create, update, delete) to dashboard admins - Update comment for userRead permission to clarify its purpose
1 parent c15faba commit fc79dae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/rbac/role_permissions.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ final Set<String> _dashboardAdminPermissions = {
6868
Permissions.languageCreate,
6969
Permissions.languageUpdate,
7070
Permissions.languageDelete,
71-
Permissions.userRead, // Allows reading any user's profile
71+
Permissions.userRead, // Allows reading any user's profile.
72+
// Allow full user account management for admins.
73+
Permissions.userCreate,
74+
Permissions.userUpdate,
75+
Permissions.userDelete,
7276
Permissions.remoteConfigCreate,
7377
Permissions.remoteConfigUpdate,
7478
Permissions.remoteConfigDelete,

0 commit comments

Comments
 (0)