Roles and UI Action visibility
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2015 02:47 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2015 02:59 PM
Hi Sai, please try hasRoleExactly('Manager')
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2015 03:04 PM
Also, please keep in mind that any new role assignment will not take place until the user does logout and login back
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2015 03:11 PM
Hello Berny,I have tried that,but it did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2015 03:22 PM
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