UserSecurityHelperIsAuthorizedPerClassName Method |
Checks whether the user is authorized for given class name and permission, returns true if so.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax public static bool IsAuthorizedPerClassName(
string className,
string permissionName,
string siteName,
UserInfo userInfo,
bool exceptionOnFailure = false
)
Parameters
- className
- Type: SystemString
Class name - permissionName
- Type: SystemString
Permission name 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:
BooleanExceptions Exception | Condition |
---|
PermissionCheckException | Thrown when permission check fail and exception is allowed by exceptionOnFailure parameter. |
See Also