UserInfoIsAuthorizedPerObject Method (PermissionsEnum, String, String, Boolean) |
Checks whether the user is authorized per object with given object type and permission.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax public virtual bool IsAuthorizedPerObject(
PermissionsEnum permission,
string objectType,
string siteName,
bool exceptionOnFailure = false
)
Parameters
- permission
- Type: CMS.DataEnginePermissionsEnum
Permission to check - objectType
- Type: SystemString
Object type - siteName
- Type: SystemString
Site name - 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