How can I check if current user has roles for editing, creating an item in a list in Sequential Workflow ?
Checking roles for an item
335 Views Asked by andDaviD At
2
There are 2 best solutions below
0

I guess you need to implement onWorkflowActivated event (http://msdn.microsoft.com/en-us/library/gg265727.aspx )
To get permission on item level for current user u need:
SPRoleDefinitionBindingCollection usersRoles = mysplistitem.AllRolesForCurrentUser;
see below link for more info; http://sharepointmalaya.blogspot.com.au/2009/07/validate-user-base-permissions-before.html
To check if current user has permissions on item, folder, list or site use DoesUserHavePermission method