I want to check if a user is a site collection administrator of a particular site collection. When I go through the member functions I see two functions
site.CheckForPermissions(SPReusableAcl acl, SPBasePermissions perms)
site.DoesUserHavePermissions(SPReusableAcl acl, SPBasePermissions perms)
But how to use them? What is SPReusableAcl
? How can I relate SPUser
and SPReusableAcl
?
Any ideas?