mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
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…
Reference in New Issue
Block a user