I want to hide Standard Change link in Change Request Interceptor if logged in user is in specific group

rpoola
Tera Contributor

Hi,

I want to hide Standard Change link in Change Request Interceptor if logged in user is in specific group.How can I achieve this.I have tried in calling method in the Script Include which returns true or false but it is not working.

 

 

Thanks

Ravi

1 ACCEPTED SOLUTION

The only way you could hide this on basis of group is a query business rule on sys_wizard_answer table. 

if(gs.getUser().isMemberOf('group_sys_id')){      //restrict for a particular group

current.addQuery('name','!=','answerName');

}

View solution in original post

13 REPLIES 13

rpoola
Tera Contributor

Hi Gurpreet,

 

Thank you for your response. It is helpful. Could you please tell me purpose of the script field.

 

Thanks

Ravikiran

Hi Ravikiran,

Unfortunately there's no documentation about but as per my understanding, whatever been written in that script will get executed whenever someone click on respective answer. So its not for hiding/displaying the answer but it defines what needs to be done after selection of that answer.

sushmitha4
Tera Expert

Hi Ravikiran,

 

Can you help tell me how this worked for you as I have created BR with same code but its not working for me.

 

Kindly help.

VENKATESH PUNGA
Tera Contributor

Kindly post the BR code ,I am trying but working.

 

Thanks.