Using data from database

So, I have a local storage with variables, I'm interested in "admin" (boolean) variable (screenshot 1), so, when user logs in I store that "admin" info from database to local variable(screen 2), so, what should I do to navigate user on specific tab depending on the admin(true or false) value, so right on srceenshot 3 you can see the could I thaught should work but it doesnt. What should I change in JavaScript, help me please.
1 person has
this question
+1
Reply