Click or drag to resize
IUserInfoIsAuthorizedPerResource Method
Returns true if given user is granted with specified permission.

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 11.0.0
Syntax
C#
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: Boolean
See Also