Skip to content

Commit

Permalink
fix changes to admin panel on refreshing the page (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
carpecodeum authored May 16, 2020
1 parent fed980d commit e1b48b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/src/app/common/UserService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e1b48b9

Please sign in to comment.