Opravená chyba ve vyhodnocování práv

This commit is contained in:
2014-07-05 00:07:41 +02:00
parent 42e0babcaa
commit 337000b3da
@@ -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;
}
}