Click or drag to resize
UserInfoIsAuthorizedPerObject Method (PermissionsEnum, BaseInfo, String, Boolean)
Checks whether the user is authorized per object with given object type and permission.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
public virtual bool IsAuthorizedPerObject(
	PermissionsEnum permission,
	BaseInfo obj,
	string siteName,
	bool exceptionOnFailure
)

Parameters

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

Return Value

Type: Boolean
Exceptions
ExceptionCondition
PermissionCheckExceptionThrown when permission check fail and exception is allowed by exceptionOnFailure parameter.
See Also