12653 check if fine-grained permissions are enabled before retrieving group memberships of users
This commit is contained in:
parent
916cfbbaf1
commit
fb978de0d8
1 changed files with 2 additions and 0 deletions
|
@ -587,10 +587,12 @@ class UserPermissions implements UserPermissionEvaluator, UserPermissionManageme
|
|||
}
|
||||
|
||||
private boolean canManageByGroup(UserModel user) {
|
||||
if (authz == null) return false;
|
||||
return evaluateHierarchy(user, (group) -> root.groups().canManageMembers(group));
|
||||
|
||||
}
|
||||
private boolean canViewByGroup(UserModel user) {
|
||||
if (authz == null) return false;
|
||||
return evaluateHierarchy(user, (group) -> root.groups().getGroupsWithViewPermission(group));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue