Skip to content

Commit b9e957b

Browse files
committed
docs(permissions): Clarify userUpdate permission scope
Updated the documentation for the `user.update` permission to explicitly state it is an administrator-level permission, distinguishing it from `user.update_owned`.
1 parent 91445de commit b9e957b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/src/rbac/permissions.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ abstract class Permissions {
4444
// Allows deleting the authenticated user's own account
4545
static const String userDeleteOwned = 'user.delete_owned';
4646

47-
// Allows creating a new user (admin-only).
48-
static const String userCreate = 'user.create';
47+
4948
// Allows updating any user's profile (admin-only).
49+
// This is distinct from `userUpdateOwned`, which allows a user to update
50+
// their own record.
5051
static const String userUpdate = 'user.update';
51-
// Allows deleting any user's account (admin-only).
52-
static const String userDelete = 'user.delete';
5352

5453
// User App Settings Permissions (User-owned)
5554
static const String userAppSettingsReadOwned = 'user_app_settings.read_owned';

0 commit comments

Comments
 (0)