mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
Bug 5239: Ensures that roles associated to a UserGroup are also part of
the meta permission check when changing the permissions of a RoleDefinition.
This commit is contained in:
1 parent
9e416bb304
commit
bf898b59fc
1 file changed
+5
+5
@@ -819,6 +819,11 @@ public class UserStoreImpl implements UserStore {
|
||||
logger.log(Level.SEVERE, e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
for (UserGroup userGroup : userGroups.values()) {
|
||||
if (userGroup.getRoleDefinitionMap().containsKey(roleToCheck)) {
|
||||
ownerships.add(new Ownership(null, userGroup));
|
||||
}
|
||||
}
|
||||
return new Pair<>(false, ownerships);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user