fix
This commit is contained in:
parent
39dea4b078
commit
e7f781df5a
1 changed files with 7 additions and 3 deletions
|
@ -289,7 +289,7 @@ class RolePermissions implements RolePermissionEvaluator, RolePermissionManageme
|
||||||
if (root.evaluatePermission(roleResource, mapRoleScope, resourceServer)) {
|
if (root.evaluatePermission(roleResource, mapRoleScope, resourceServer)) {
|
||||||
return checkAdminRoles(role);
|
return checkAdminRoles(role);
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ class RolePermissions implements RolePermissionEvaluator, RolePermissionManageme
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canMapComposite(RoleModel role) {
|
public boolean canMapComposite(RoleModel role) {
|
||||||
if (canManageDefault(role)) return true;
|
if (canManageDefault(role)) return checkAdminRoles(role);
|
||||||
|
|
||||||
if (!root.isAdminSameRealm()) {
|
if (!root.isAdminSameRealm()) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -370,7 +370,11 @@ class RolePermissions implements RolePermissionEvaluator, RolePermissionManageme
|
||||||
|
|
||||||
Resource roleResource = resource(role);
|
Resource roleResource = resource(role);
|
||||||
Scope scope = mapCompositeScope(resourceServer);
|
Scope scope = mapCompositeScope(resourceServer);
|
||||||
return root.evaluatePermission(roleResource, scope, resourceServer);
|
if (root.evaluatePermission(roleResource, scope, resourceServer)) {
|
||||||
|
return checkAdminRoles(role);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue