closes #73: Oprava chyby v kontrole práv když je neplatná session.

multitenant
Josef Rokos 11 years ago
parent dc3fdc3e0b
commit 746d01ebe6

@ -35,11 +35,14 @@ public class IsspstPermissionEvaluator implements PermissionEvaluator {
perm += "_" + moduleId; perm += "_" + moduleId;
for (Role r : perms) { for (int i = 0; i < perms.size(); i++) {
if (r.getAuthority().equals(perm)) { if (!(perms.get(i) instanceof Role)) {
return false;
}
if (perms.get(i).getAuthority().equals(perm)) {
return true; return true;
} }
if (r.getAuthority().equals(Constants.ROLE_ADMIN)) { if (perms.get(i).getAuthority().equals(Constants.ROLE_ADMIN)) {
return true; return true;
} }
} }

Loading…
Cancel
Save