Skip to content

Commit

Permalink
Implement UserManagerUtil removeRole
Browse files Browse the repository at this point in the history
  • Loading branch information
eschleb committed Sep 24, 2024
1 parent f883db2 commit 23a743b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public void enable(final User user) {
userManager.get().setProperty(user, MgnlUserManager.PROPERTY_ENABLED, "true");
}

public void removeRole(final User user, final Role role) {
userManager.get().removeRole(user, role.getName());
}

public static class Factory {
private final SecuritySupport securitySupport;

Expand Down

0 comments on commit 23a743b

Please sign in to comment.