I am working on a SP2013 Master page. I want to retain the top blue bar (so that the user name remain at right top corner) and hide the lower ribbon bar by permission (so that user without permission cannot click "follow" or "share")
In the Master page, I wrapped the ms-designer-ribbon with SPSecurityTrimmedControl:
<SharePoint:SPSecurityTrimmedControl Permissions="EditListItems" runat="server"> <div id="ms-designer-ribbon"> <PublishingRibbon:PublishingRibbon runat="server" /> </div> </SharePoint:SPSecurityTrimmedControl>
However, not only the lower ribbon bar is hidden, the top blue bar also gone. Is there any way to hide only the lower ribbon bar?