Restrict change Interceptor for specific Role

Kiran Patil3
Giga Expert

Hi,

Has anyone added additional condition on change interceptor. I have requirement where specific role should not able to create change request from interceptor, even if user has itil role.

find_real_file.png

 

I have tried to add script in interceptor to check if user has specific role or not but no luck. Also, I have client script and client script worked and display error but form stays and if user close error message, she/he can submit request.

 

find_real_file.png

2 REPLIES 2

Yogi3
Kilo Guru

try using gs.setRedirect(url) in if statement instead of return.

Hi Yogi

 

Thanks for reply.

I have tried gs.setRedirect(url) option but its not working.