|
|
@ -41,11 +41,12 @@ public class IsspstPermissionEvaluator implements PermissionEvaluator {
|
|
|
|
private boolean evaluateGlobal(Service<?> service, String permission, List<Role> perms) {
|
|
|
|
private boolean evaluateGlobal(Service<?> service, String permission, List<Role> perms) {
|
|
|
|
|
|
|
|
|
|
|
|
String moduleId = "";
|
|
|
|
String moduleId = "";
|
|
|
|
String perm = "";
|
|
|
|
String perm = permission;
|
|
|
|
|
|
|
|
|
|
|
|
for (Module m : Constants.MODULES) {
|
|
|
|
for (Module m : Constants.MODULES) {
|
|
|
|
if (m.getServiceClass() != null && m.getServiceClass().isAssignableFrom(service.getClass())) {
|
|
|
|
if (m.getServiceClass() != null && m.getServiceClass().isAssignableFrom(service.getClass())) {
|
|
|
|
moduleId = m.getId();
|
|
|
|
moduleId = m.getId();
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|