SPSecurableObject.DoesUserHavePermissions Method
SharePoint 2010
Indicates whether the current user has a specified set of permissions.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- permissionMask
- Type: Microsoft.SharePoint.SPBasePermissions
A bitwise combination of enumeration values that specifies a set of permissions.
Return Value
Type: System.Booleantrue if the current user has the specified permissions; otherwise, false.