Merge pull request #4384 from kensible/fixing-loading-errors

Fixing loading of config info errors
This commit is contained in:
kensible 2016-12-12 15:12:01 -05:00 committed by GitHub
commit de88839059
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();
});
};