UserInfoProviderIsAuthorizedPerObject Method (BaseInfo, PermissionsEnum, String, UserInfo, 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 static bool IsAuthorizedPerObject(
BaseInfo info,
PermissionsEnum permission,
string siteName,
UserInfo userInfo,
bool exceptionOnFailure
)
Parameters
- info
- Type: CMS.DataEngineBaseInfo
InfoObject to check - permission
- Type: CMS.DataEnginePermissionsEnum
Permission - siteName
- Type: SystemString
Site name - userInfo
- Type: CMS.MembershipUserInfo
User info object - exceptionOnFailure
- Type: SystemBoolean
If true, PermissionCheckException is thrown whenever a permission check fails
Return Value
Type:
BooleanSee Also