The CreatorCon Call for Content is officially open! Get started here.

How to show module to a members of specific group?

Gagandeep kaur2
Tera Contributor

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.

find_real_file.png

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.

5 REPLIES 5

Vishal Khandve
Kilo Sage

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