The following code always returns false (which is incorrect since the user has full permission at the site level):
Site site;
BasePermissions permissionMask;
ClientResult<bool> result;
permissionMask = new BasePermissions();
permissionMask.Set(PermissionKind.ManageWeb);
result = site.DoesUserHavePermissions(permissionMask);
return result.Value;
I'm trying to use the new SharePoint 2010 client object model. I was delighted to find the DoUserHavePermissions method, but it seems I'm not sure if I know to use it. I have no idea if I am using the correct mask or should I specify the user account for which I want to check the permission level? Any help would be greatly appreciated. Thank you
Boris source
share