1
0
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:
Ken Hoes 2016-12-12 09:08:42 -05:00
parent 07a395b738
commit 53349cc24d
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -99,7 +99,8 @@ angular.module('LoadConfigHelper', ['Utilities'])
configInit();
}).error(function(error) {
console.log(error);
$log.debug(error);
configInit();
});
};