IUserInfoIsAuthorizedPerResource Method |
Returns true if given user is granted with specified permission.
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax 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:
BooleanSee Also