Ravi Kumar

Ravi Kumar

  • 1.2k
  • 192
  • 20.4k

I Need to hide/disable "Modify View" button in ribbon

Sep 1 2015 6:36 AM
Dear All,
 
I have a scenario like i need to hide a "Modify View" Button from ribbon control for all users except spadmin/system account.
 
I have made hidden through CSS
<style type="text/css">
#Ribbon\.Library\.CustomViews\.ModifyView-Medium
{
display:none;
}
</style>
 
I have used security trimmed control in master page
<Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=FullMask”>
Only users with FullMask permissions will be able to see this content.
<style type="text/css">
#Ribbon\.Library\.CustomViews\.ModifyView-Medium
{
display:block;
}
</style>

</SharePoint:SPSecurityTrimmedControl> 
 
 
 
Tried with changing Permissions to "ManageWeb" and etc.
 i reffered this for permissions
http://www.robertkuzma.com/2011/03/security-trimmed-controls-in-sharepoint/ 
 
 
 Have not found any solution please kindly help me out.
 
 
Many thanks in advance.
 
Regards,
Ravi Kumar S 
 

Answers (5)