mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
Merge pull request #4384 from kensible/fixing-loading-errors
Fixing loading of config info errors
This commit is contained in:
@@ -16,7 +16,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re
|
|||||||
Rest.setUrl(url + '/all');
|
Rest.setUrl(url + '/all');
|
||||||
Rest.options()
|
Rest.options()
|
||||||
.success(function(data) {
|
.success(function(data) {
|
||||||
if($rootScope.is_superuser) {
|
if($rootScope.user_is_superuser) {
|
||||||
returnData = data.actions.PUT;
|
returnData = data.actions.PUT;
|
||||||
} else {
|
} else {
|
||||||
returnData = data.actions.GET;
|
returnData = data.actions.GET;
|
||||||
|
|||||||
@@ -99,7 +99,8 @@ angular.module('LoadConfigHelper', ['Utilities'])
|
|||||||
configInit();
|
configInit();
|
||||||
|
|
||||||
}).error(function(error) {
|
}).error(function(error) {
|
||||||
console.log(error);
|
$log.debug(error);
|
||||||
|
configInit();
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user