Click or drag to resize
IUserInfoIsAuthorizedPerClassName Method
Checks whether the user is authorized for given class name and permission, returns true if so.

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 12.0.0
Syntax
C#
bool IsAuthorizedPerClassName(
	string className,
	string permissionName,
	string siteName,
	bool exceptionOnFailure
)

Parameters

className
Type: SystemString
Class name
permissionName
Type: SystemString
Permission name to check
siteName
Type: SystemString
Site name
exceptionOnFailure
Type: SystemBoolean
If true, PermissionCheckException is thrown whenever a permission check fails

Return Value

Type: Boolean
See Also