mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 02:31:03 -03:30
CheckAccess callback
adjusted the callback of hte check access module. changed it to happen after successful REST call.
This commit is contained in:
@@ -39,7 +39,9 @@ angular.module('AccessHelper', ['RestServices', 'Utilities'])
|
|||||||
} else {
|
} else {
|
||||||
scope.PermissionAddAllowed = false;
|
scope.PermissionAddAllowed = false;
|
||||||
}
|
}
|
||||||
|
if(callback){
|
||||||
|
scope.$emit(callback);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.error(function (data, status) {
|
.error(function (data, status) {
|
||||||
ProcessErrors(scope, data, status, null, {
|
ProcessErrors(scope, data, status, null, {
|
||||||
@@ -50,9 +52,7 @@ angular.module('AccessHelper', ['RestServices', 'Utilities'])
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(callback){
|
|
||||||
scope.$emit(callback);
|
|
||||||
}
|
|
||||||
//if (!access) {
|
//if (!access) {
|
||||||
// Alert('Access Denied', 'You do not have access to this function. Please contact your system administrator.');
|
// Alert('Access Denied', 'You do not have access to this function. Please contact your system administrator.');
|
||||||
//}
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user