UserInfoProviderIsAuthorizedPerObject Method (String, Int32, PermissionsEnum, String, UserInfo) |
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(
string objectType,
int objectId,
PermissionsEnum permission,
string siteName,
UserInfo userInfo
)
Parameters
- objectType
- Type: SystemString
Object type - objectId
- Type: SystemInt32
Object ID - permission
- Type: CMS.DataEnginePermissionsEnum
Permission - siteName
- Type: SystemString
Site name - userInfo
- Type: CMS.MembershipUserInfo
User info object
Return Value
Type:
BooleanSee Also