how to make the ui action be inactive except to admin?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2018 06:32 PM
I create a ui action and the action name is delete_checked to hide the 'Delete' ui action of table[sys_ui_action] in my table .but how to make my ui action inactive to admin, active to other roles?
Labels:
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2018 09:06 PM
Hello Chenyanwei,
To make a ui action inactive to admin, active to other roles you can add the following in the condition and also you need to click/select the Form button field in UI action
gs.hasRole('admin') == 'false'
Please like if this was helpful.
Thanks,
Satish