Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Nickel Contributor
Posts: 47
Registered: ‎05-25-2011

SLX 7.5.4: Check secured action in javascript?

Hi all,

 

As the subject says, i'm trying to find if there's a way to check secured actions for the currently logged-in user from Javascript. Any ideas?

 

Thanks!

Highlighted
Nickel Contributor
Posts: 47
Registered: ‎05-25-2011

Re: SLX 7.5.4: Check secured action in javascript?

Just in case anyone else is interested in the solution to this, see javascript snippet below:

 

var roleSecurityService = Sage.Services.getService("RoleSecurityService");

roleSecurityService.hasAccess("securedActionName"); //Returns true or false