We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

gs.hasRole() second parameter

Manal  AQUIL
Tera Contributor

Hi Team,

 

I just came across create ACL on kb_feedback_task where I found below script :

gs.hasRole("itil", "sn_incident_write");
 
Please help me understand what the second parameter implies to .
 
Thanks,
Manal 
1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage

Hi @Manal Aquil ,

 

Second parameter is nothing but the role only in gs.hasRole('role1','role2','role3') u can provide multiple roles by adding comma n validate.

 

Thanks,

Danish

View solution in original post

3 REPLIES 3

Danish Bhairag2
Tera Sage

Hi @Manal Aquil ,

 

Second parameter is nothing but the role only in gs.hasRole('role1','role2','role3') u can provide multiple roles by adding comma n validate.

 

Thanks,

Danish

Manal  AQUIL
Tera Contributor

Thanks, it's helpful