Hide Ribbons to the anonymous users

Hide Ribbons to the anonymous users in SharePoint based on the PermissionsString ......

<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server"
        PermissionsString="AddListItems" AuthenticationRestrictions="AuthenticatedUsersOnly">
     
 <script type="text/javascript">
            document.getElementById("s4-ribbonrow").style.display = "block";
            document.getElementById("suiteBar").style.display = "block";
            /*document.getElementById("Span1").style.display = "block";*/
        </script>

    </SharePoint:SPSecurityTrimmedControl>

Comments

Popular posts from this blog

List attachment link in SharePoint 2013 search.

Bulk update and delete using SPservice in SharePoint

Sharepoint 2013 Script Editor web part CData for custom page layout using visual studio.