UserInfoIsAuthorizedPerResource Method (String, String, String, Boolean) |
Returns true if given user is granted with specified permission.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax public bool IsAuthorizedPerResource(
string resourceName,
string permissionName,
string siteName,
bool exceptionOnFailure
)
Parameters
- resourceName
- Type: SystemString
Resource name - permissionName
- Type: SystemString
Permission name - siteName
- Type: SystemString
Site name - exceptionOnFailure
- Type: SystemBoolean
If true, PermissionCheckException is thrown whenever a permission check fails
Return Value
Type:
BooleanImplements
IUserInfoIsAuthorizedPerResource(String, String, String, Boolean)Exceptions Exception | Condition |
---|
PermissionCheckException | Thrown when permission check fail and exception is allowed by exceptionOnFailure parameter. |
See Also