Hide the Ribbon to non contributors

Last week, one of my customer asked me to hide the ribbon to visitors. Achieving it is very simple : in your master page, hide the div id = “s4-ribbonrow” and make it available for users having the permission AddAndCustomizePages by using  the Sharepoint:SPSecurityTrimmmedControl as described below :

 

image

No Ribbon anymore, just the navigation folder :

image

The list of permissions (to use in PermissionsString) is available in the MSDN documentation.

image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s