Page 1 of 1

Logic Functions

Posted: Fri Apr 17, 2015 6:06 am
by taucher

Hello,

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


Logic Functions

Posted: Fri Apr 17, 2015 6:14 am
by She

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,


Logic Functions

Posted: Fri Apr 17, 2015 6:40 am
by taucher

My First Topic - Fastest Response - Solved.

Thank you so much,