Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all articles
Browse latest Browse all 9368

How hide ribbon bar for read only users from custom master page.

$
0
0

Hi,

I want to hide the ribbon bar for read only users, on my custom master page I put inside of a SharePoint:SPSecurityTrimmedControl this div: <div id="ms-designer-ribbon">, but when I  save the changes the master page does not work anymore.

<!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AddAndCustomizePages">--><div id="ms-designer-ribbon"><!--SID:02 {Ribbon}--><!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; ">The SharePoint ribbon will be here when your file is either previewed on or applied to your site.</div><!--PE: End of READ-ONLY PREVIEW --></div><!--ME:</SharePoint:SPSecurityTrimmedControl>-->

I'll appreciate any suggestions in order to solve this.

Regards.


Viewing all articles
Browse latest Browse all 9368


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>