Wednesday, October 24, 2012

How to suppress SharePoint 2010 ribbon based on permissions

Have you ever noticed how in SharePoint 2010 Owners see the ribbon and can click Site Actions/Browse/Page, and Readers see the ribbon too but there is no any actions or tabs to click and they see dark blue band. In some cases there is nothing else going on up there for Readers. It is wasted real estate!
The Reader can use all the extra space for some website goodness!
This is easy to solve.
- Open the master page, find the div tag: <div id="s4-ribbonrow"- Put the following around it: 
<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageWeb"><div id="s4-ribbonrow" …</div></SharePoint:SPSecurityTrimmedControl>

From here

No comments:

Post a Comment