From 70e1a4bf109d37b99848d98cd429877a3485b42f Mon Sep 17 00:00:00 2001 From: the catalyst Date: Sat, 1 Feb 2020 03:34:46 +0530 Subject: [PATCH] fix changes to admin panel on refreshing the page --- ui/src/app/common/UserService.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) {