How to show module to a members of specific group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2017 01:26 AM
Hi,
I want to show the module to the members of particular group. I have given change manager role to the group and added change manager role in the role field on the module form.
This module is visible to admin but i want to hide it from admins as well.
Could you please tell me is there any way to show only to the members of group, not to the admin or any other user?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 01:09 AM
Hi gagandeep,
try the following one. hope it works for you
Hide Application or Module
Table: Application Menu [sys_app_application] or Module[sys_app_module]
When: before
Query = true
if(!gs.getUser().isMemberOf('Group A') && !gs.hasRole('admin'))
{
current.addQuery('sys_id','!=','5212632ced4f5500b14f689a971ad873');//sys_id of the application
}
Thanks,
vishu