mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
added tests for ACL handling, merging and dropping
This commit is contained in:
+1
-1
@@ -299,7 +299,7 @@ public class SecurityStoreMerger {
|
||||
for (final UserGroup sourceGroup : groupsInAcl) {
|
||||
final Set<String> actionsForGroup = new HashSet<>(actionsByUserGroup.get(sourceGroup));
|
||||
final UserGroup targetGroup = userGroupMap.get(sourceGroup);
|
||||
if (targetGroup == null) {
|
||||
if (sourceGroup != null && targetGroup == null) {
|
||||
// drop; check that we don't grow permissions:
|
||||
for (final String action : actionsForGroup) {
|
||||
if (action.startsWith("!")) {
|
||||
|
||||
Reference in New Issue
Block a user