How to prevent a user from creating a dashboard from homepage based on roles ?
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2017 10:44 PM
Hi Team ,
Is there anyway we can prevent the user from creating a dashboard version of homepage ?
Regards,
Ankitha
12 REPLIES 12
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2018 07:26 AM
How were you able to hide the two options with a UI script? I just can't figure out how to do it.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2018 05:39 AM
below is the script that I have used
var location = window.location.href;
if(location.indexOf("home.do")!=-1 && location.indexOf("_home.do")==-1){
if(!g_user.hasRole('admin')){
jQuery('div.navbar-header > a').css('display', 'none'); //hide the Open Dashboard Version button next to the Dashboard Selector
jQuery('#createDashboardVersionMenu').css('display', 'none'); //hide the Create Dashboard Version button in the Homepage Settings
}
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2018 03:05 AM
I have tried the above script.But still i(ITIL USERS) can see create dashboard version button under homepage setting gear icon.Did anybody tried it??Will this work