Page 1 of 1

Role - Custom Actions

Posted: Wed Nov 29, 2017 3:05 pm
by dire

Hello,

I need advice how to solve a problem on restrict access to custom actions.
I made some custom actions (send by email, send by sms) on table. Now I would like to restrict these two options based on user role.

Example: User “John Smith” has role “Power User” and has privilege for using both custom actions.


Re: Role - Custom Actions

Posted: Thu Nov 30, 2017 11:23 am
by Webmaster

Just add the checking when creating the Custom Actions. For example:

if (CurrentUserName() == "...") // Change your condition here
CustomActions["star"] = new cListAction("star", "Add Star");