Monday, September 17, 2007

Hide Site Actions Link

We don't visitors to our site to show the link so I just wrap the control using this control:

<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="BrowseDirectories">

Site Actions

</Sharepoint:SPSecurityTrimmedControl>

The "BrowseDirectories" works for all the roles but Visitor. So it will hide the link for the Visitor role.