Role - Custom Actions

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
dire
User
Posts: 41

Role - Custom Actions

Post 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.


Webmaster
User
Posts: 9425

Post 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");


Post Reply