How To Hide Sharepoint Ribbon From Anonymous Users


1)      Open your SharePoint master page

2)      Locate this line:

<div id="s4-ribbonrow">

3)      Change it to:

<div id="s4-ribbonrow" style="display:none">

4)      Now find the end of the “s4-ribbonrow” tag and add following block right after it:

<Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages">
<script type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
</script>
</Sharepoint:SPSecurityTrimmedControl>

5)      Save the new master page and publish it.

Comments

Popular posts from this blog

How to copy SharePoint list workflow

Generate Auto number Field in SharePoint list

INFOPATH FORM HIDE/DISABLE FIELDS BASED ON SHAREPOINT GROUP MEMBERSHIP