SharePoint: extending the security trimmed control for groups

In SharePoint, there is the SPSecurityTrimmerControl, used to show some part of the page to only certain users. The criteria filter is based on SPBasePermissions. But what if you want to consider groups also? You can derive from SPSecurityTrimmedControl and override the Render method with your own logic, as described in the article Extending the SharePoint Security Trimmed Control to support SharePoint Groups.

Add comment

Loading