AnsweredAssumed Answered

Trying to make Kickstart App not appear when not being Admin

Question asked by chrisx_212 on Jun 15, 2016
Latest reply on Nov 19, 2016 by walkhadher
Hello all.

I'd like to know how to make sure that when I log in as a user without admin capabilities, they will not see the Kickstart App default menu in the main landing page. I've tried including this function in the Kickstart App definitions:

isVisible: function(){
   return AuthenticationSharedService.hasAdminCapability();

Within the runtime-app-definition.js but it gives out a NULL value. When said line was given in, for example, idm-app.js, it will give out a proper true/false depending on Admin Capabilities (so the menus User and Organization do not appear in the Identity Management header menu), so it works properly there.

Where can we put on the 'check if user has Admin Capabilities or not' for this endeavor? I suspect somewhere like landing-app.js, but I'm not sure. Help?

Thank you.