UserInfo.IsAuthorizedPerObject 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: 8.2.23
Syntaxpublic virtual bool IsAuthorizedPerObject(
PermissionsEnum permission,
string objectType,
string siteName,
bool exceptionOnFailure = false
)
Parameters
- permission
- Type: CMS.DataEngine.PermissionsEnum
Permission to check - objectType
- Type: System.String
Object type - siteName
- Type: System.String
Site name - exceptionOnFailure (Optional)
- Type: System.Boolean
If true, PermissionCheckException is thrown whenever a permission check fails
Return Value
Type:
Boolean
See Also