mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-25 06:58:39 +00:00
simplified user & group handing for most cases
This commit is contained in:
+1
-2
@@ -479,8 +479,7 @@ public class AdminConsolePanel extends HeaderPanel implements HandleTabSelectabl
|
||||
for (WildcardPermission requiredPermission : permissionsRequired) {
|
||||
// TODO bug4763: obtain ownership and ACL through a provider pattern; providers may be passed to this panel's constructor
|
||||
UserDTO anonymous = userService.getAnonymousUser();
|
||||
if (PermissionChecker.isPermitted(requiredPermission, user, user.getUserGroups(), anonymous,
|
||||
anonymous.getUserGroups(), null, null)) {
|
||||
if (PermissionChecker.isPermitted(requiredPermission, user, anonymous, null, null)) {
|
||||
hasPermission = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user