mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Fixed bug with loading and permissions, error logging and continuing after GET error
This commit is contained in:
parent
07a395b738
commit
53349cc24d
@ -16,7 +16,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re
|
||||
Rest.setUrl(url + '/all');
|
||||
Rest.options()
|
||||
.success(function(data) {
|
||||
if($rootScope.is_superuser) {
|
||||
if($rootScope.user_is_superuser) {
|
||||
returnData = data.actions.PUT;
|
||||
} else {
|
||||
returnData = data.actions.GET;
|
||||
|
@ -99,7 +99,8 @@ angular.module('LoadConfigHelper', ['Utilities'])
|
||||
configInit();
|
||||
|
||||
}).error(function(error) {
|
||||
console.log(error);
|
||||
$log.debug(error);
|
||||
configInit();
|
||||
});
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user