Click or drag to resize
UserSecurityHelperIsAuthorizedPerObject Method (PermissionsEnum, BaseInfo, String, UserInfo, Boolean)
Checks whether the user is authorized for given object with given permission.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax
C#
public static bool IsAuthorizedPerObject(
	PermissionsEnum permission,
	BaseInfo obj,
	string siteName,
	UserInfo userInfo,
	bool exceptionOnFailure = false
)

Parameters

permission
Type: CMS.DataEnginePermissionsEnum
Permission to check
obj
Type: CMS.DataEngineBaseInfo
Object to check
siteName
Type: SystemString
Site name
userInfo
Type: CMS.MembershipUserInfo
User to check
exceptionOnFailure (Optional)
Type: SystemBoolean
If true, PermissionCheckException is thrown whenever a permission check fails

Return Value

Type: Boolean
See Also