Opravená chyba ve vyhodnocování práv
This commit is contained in:
@@ -41,11 +41,12 @@ public class IsspstPermissionEvaluator implements PermissionEvaluator {
|
||||
private boolean evaluateGlobal(Service<?> service, String permission, List<Role> 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user