taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

Logic Functions

Hello,

I want to know how can i show or hide a component according to the logged in user's role or another property?

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

Logic Functions

Hi taucher,

let me try this.

  1. create localstorage for ex. the name of localstorage is UserType

  2. if(localStorage.getItem('UserType')=="ADMIN"){
    Appery("SampleToShow").show();
    }else{
    Appery("SampleToShow").hide();
    }

    hehe i hope this could help.
    Goodluck,

taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

Logic Functions

My First Topic - Fastest Response - Solved.

Thank you so much,

Return to “Issues”