diff --git a/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java b/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java index a0ec127f..7c1ab9c0 100644 --- a/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java +++ b/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java @@ -41,11 +41,12 @@ public class IsspstPermissionEvaluator implements PermissionEvaluator { private boolean evaluateGlobal(Service service, String permission, List perms) { String moduleId = ""; - String perm = ""; + String perm = permission; for (Module m : Constants.MODULES) { if (m.getServiceClass() != null && m.getServiceClass().isAssignableFrom(service.getClass())) { moduleId = m.getId(); + break; } }