mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Fixed bug with loading and permissions, error logging and continuing after GET error
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