|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|