diff --git a/ui/src/app/common/UserService.js b/ui/src/app/common/UserService.js index f364dcfd..1ecd81b8 100755 --- a/ui/src/app/common/UserService.js +++ b/ui/src/app/common/UserService.js @@ -62,15 +62,14 @@ var getName = function() { return localStorage.getItem('UserName'); - }; var getAuthLevel = function() { - return data.authLevel; + return localStorage.getItem('AuthLevel'); }; var setAuthLevel = function(auth) { - data.authLevel = auth; + localStorage.setItem('AuthLevel', auth); }; var setToken = function(newToken) {