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

SSA1
Giga Expert

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.

 

find_real_file.png

 

 

 

 

2 REPLIES 2

Aman Kumar S
Kilo Patron

Did you try only with &&(!gs.hasRole("custom_role")

Best Regards
Aman Kumar

yeah but it didn't work