Wednesday, August 18, 2010

SharePoint: Check Item Level Permission

Use
listItem.DoesUserHavePermissions(perms)
This method will return true or false.

Avoid
list.CheckPermissions(perms)
This method throws an Unauthorised Access Exception if current user does not have permissions, which will override the try-catch and causes an auto-redirection to an Access Denied Page.



No comments:

Post a Comment