SPSite.GetEffectiveRightsForAcl method (SPReusableAcl, SPWeb)

Returns the actual permissions that the current user has for the specified access control list (ACL).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPBasePermissions GetEffectiveRightsForAcl(
	SPReusableAcl acl,
	SPWeb web
)

Parameters

acl
Type: Microsoft.SharePoint.SPReusableAcl

An SPReusableAcl object that represents an ACL.

web
Type: Microsoft.SharePoint.SPWeb

An SPWeb object that represents a Web site. The Web site that you specify serves as a helper object that is used to calculate permission on the specified ACL. Specifying a Web site improves performance by eliminating the need to recreate the root Web site object.

Return value

Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions value that specifies base permissions for the site and ACL.

The GetEffectiveRightsForAcl method returns more information than the DoesUserHavePermissions method.

Show: