Skip to content

Commit

Permalink
Let the Manage Role permission as a sub-permission of Edit.
Browse files Browse the repository at this point in the history
Resolve #18935
  • Loading branch information
maliming committed Feb 8, 2024
1 parent e57159f commit 059ca71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public override void Define(IPermissionDefinitionContext context)

var usersPermission = identityGroup.AddPermission(IdentityPermissions.Users.Default, L("Permission:UserManagement"));
usersPermission.AddChild(IdentityPermissions.Users.Create, L("Permission:Create"));
usersPermission.AddChild(IdentityPermissions.Users.Update, L("Permission:Edit"));
var editPermission = usersPermission.AddChild(IdentityPermissions.Users.Update, L("Permission:Edit"));
editPermission.AddChild(IdentityPermissions.Users.ManageRoles, L("Permission:ManageRoles"));
usersPermission.AddChild(IdentityPermissions.Users.Delete, L("Permission:Delete"));
usersPermission.AddChild(IdentityPermissions.Users.ManagePermissions, L("Permission:ChangePermissions"));
usersPermission.AddChild(IdentityPermissions.Users.ManageRoles, L("Permission:ManageRoles"));

identityGroup
.AddPermission(IdentityPermissions.UserLookup.Default, L("Permission:UserLookup"))
Expand Down

0 comments on commit 059ca71

Please sign in to comment.