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

Bulk update and delete using SPservice in SharePoint

List attachment link in SharePoint 2013 search.

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