Restrict change Interceptor for specific Role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2019 03:49 PM
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2019 04:09 PM
try using gs.setRedirect(url) in if statement instead of return.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2019 04:23 PM
Hi Yogi
Thanks for reply.
I have tried gs.setRedirect(url) option but its not working.