1

I have users with contribute access level and read access level in my sharepoint 2013 publishing site, users with Read access don't see Edit Links in top Navigation but users with Contribute access see Edit Links. How can I hide Edit links for users with contribute access?

Manage website is already unchecked for contribute access level users. Is there anything else that i am missing in site permissions?

enter image description here

Thanks,

2 Answers 2

0

You can try the following code on master page, this would allow only owners to view the edit links:

 <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask">
    <style>
     .ms-navedit-editLinksText{
      display: none;
     }
     </style>
    </SharePoint:SPSecurityTrimmedControl>
2
  • Where on the master page should I add this code? does it matter?
    – jess370
    Commented Mar 9, 2016 at 14:21
  • hi you can put it on masterpage between: <head runat="server"> </head> Commented Mar 10, 2016 at 14:39
0

You can also try using javascript:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.