mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
Fixed issue with permissions for admins
When I added the callback for the CheckAccess module, I forgot to add the callback for whether the user is an admin (already added for non-admin users)
This commit is contained in:
parent
0bf3d54095
commit
7e822c34d5
@ -29,6 +29,9 @@ angular.module('AccessHelper', ['RestServices', 'Utilities'])
|
||||
|
||||
if (me.is_superuser) {
|
||||
scope.PermissionAddAllowed = true;
|
||||
if(callback){
|
||||
scope.$emit(callback);
|
||||
}
|
||||
} else {
|
||||
if (me.related.admin_of_organizations) {
|
||||
Rest.setUrl(me.related.admin_of_organizations);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user