I need to know how to detect the limited access role, when looping through role definitions for a list item.
Item in code below is a listitem, using object model (c#).
Code so far is:
SPRoleAssignmentCollection roles = item.RoleAssignments;
foreach (SPRoleAssignment role in roles)
{
SPRoleDefinitionBindingCollection rbc = role.RoleDefinitionBindings;
foreach (SPRoleDefinition rdef in rbc)
{
RoleAssignment.RoleDefinitionBindings.Add(rdef);
Log("Adding role definition : Name(" + rdef.Name + ") Type(" + rdef.Type + ")");
}
}
problem is the RoleDefinition.Type enum does not have a limited property, so how can I check if the permission is limited / restricted access?
