- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 10:52 AM
I have created a module which shows up the received emails related to the logged in user.
But the issue here is that the user can click on the filters and remove the filters.
I checked the article
Restricting Filters and Breadcrumbs - ServiceNow Wiki
I tried creating a script include named 'sys_emailDisplayFilter' , and the function to set answer as true only for admin.
But when I impersonated as user with itil user, still the user can play with the filters/breadcrumbs.
How can I make the breadcrumb/filters readonly.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 11:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 11:14 AM
Also, try this code:
function sys_emailDisplayFilter() {
var answer = false;
if (gs.hasRole("admin")) {
answer = true;
}
return answer;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 11:52 AM
cache flush was the issue Thanks Mani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 12:00 PM
Ashwani,
Thanks for the update. Can you mark the answer as answered which will help others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 12:08 PM
Yep done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2016 05:36 AM
Hello Ashwani,
Can you tell me along with script include,what else need to write.
How script include will be called?
Thanks,
Smruti