Click or drag to resize
UserInfoProviderIsAuthorizedPerObject Method (String, PermissionsEnum, String, UserInfo, Boolean)
Returns true if given user is granted with specified permission.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static bool IsAuthorizedPerObject(
	string objectType,
	PermissionsEnum permission,
	string siteName,
	UserInfo userInfo,
	bool exceptionOnFailure
)

Parameters

objectType
Type: SystemString
Object type
permission
Type: CMS.DataEnginePermissionsEnum
Permission
siteName
Type: SystemString
Site name
userInfo
Type: CMS.MembershipUserInfo
User info object
exceptionOnFailure
Type: SystemBoolean
If true, PermissionCheckException is thrown whenever a permission check fails

Return Value

Type: Boolean
See Also