Roles and UI Action visibility

Sai Santhosh Ch
Tera Contributor

Hello,

                I have created a group of 4 members(all are admins), out of which i have given an extra role "MANAGER" to one member in the group.

                I have created a form button called "SEND" in the change form using UI action.

         

                My requirement is that "SEND" button should only be visible to the user with extra role "MANAGER".

SO, In the condition field of UI action, I have written   gs.hasRole("MANAGER"). But the button is visible to all the users in the group.Please help

Thanks in advance

8 REPLIES 8

bernyalvarado
Mega Sage

Hi Sai, please try hasRoleExactly('Manager')



Thanks,


Berny


Also, please keep in mind that any new role assignment will not take place until the user does logout and login back



Thanks,


Berny


Hello Berny,I have tried that,but it did not work.


Hi Sai, and do you did it with the right letter-case? Like this: 'Manager'. The comparison is case-sensitive, so MANAGER , all in capital letters, would not work.



Thanks,


Berny