SPListItem.DoesUserHavePermissionsForUI method

SharePoint 2013

Checks whether the specified user has the specified permissions on an item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public bool DoesUserHavePermissionsForUI(
	SPBasePermissions permissionMask


Type: Microsoft.SharePoint.SPBasePermissions

An SPBasePermissions value that specifies permissions for the item.

Return value

Type: System.Boolean
true if the user has the permissions; otherwise, false.

This method differs from the DoesUserHavePermissions method if the ReadOnlyUI is set to true, and will always be as or more restrictive than the DDoesUserHavePermissions method.