diff --git a/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java b/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java index 8dc534ff..6b118cbd 100644 --- a/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java +++ b/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java @@ -76,6 +76,11 @@ public class IsspstPermissionEvaluator implements PermissionEvaluator { for (Workgroup wg : userWorkgroups) { List wgRoles = wgService.getUserWorkgroupRoles(wg, user); + + if (wgRoles == null) { + continue; + } + for (Role r : wgRoles) { for (Permission p : r.getPermissions()) { if (p.getAuthority().equals(permission.getAuthority())) {