How to disable OOB UI action and context menus for specific custom user role, but it should be enable for admin whether admin has/has not custom user role.this is the expected behavior I want this UI action to be visible only when custom role is add
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2022 04:08 AM
I wan to hide OOB UI actions and context menus for a specific custom user role. But it will not applicable for admin.
this is how I did it, but it is always whether admin has this custom user role or not, it will always hide buttons for admin also.
How to prevent that. and also how to do this same for context menus please someone guide me.
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2022 04:58 AM
Did you try only with &&(!gs.hasRole("custom_role")
Best Regards
Aman Kumar
Aman Kumar
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2022 05:23 AM
yeah but it didn't work