mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 17:07:36 -02: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:
@@ -29,6 +29,9 @@ angular.module('AccessHelper', ['RestServices', 'Utilities'])
|
|||||||
|
|
||||||
if (me.is_superuser) {
|
if (me.is_superuser) {
|
||||||
scope.PermissionAddAllowed = true;
|
scope.PermissionAddAllowed = true;
|
||||||
|
if(callback){
|
||||||
|
scope.$emit(callback);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (me.related.admin_of_organizations) {
|
if (me.related.admin_of_organizations) {
|
||||||
Rest.setUrl(me.related.admin_of_organizations);
|
Rest.setUrl(me.related.admin_of_organizations);
|
||||||
|
|||||||
Reference in New Issue
Block a user