DocumentSecurityHelperIsAuthorizedPerTreeNode Method (Int32, NodePermissionsEnum, String, UserInfo) |
Checks whether the user is authorized for the given document and permission, returns the authorization result. Doesn't check the allowed cultures of an user.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax public static AuthorizationResultEnum IsAuthorizedPerTreeNode(
int nodeId,
NodePermissionsEnum permission,
string culture,
UserInfo userInfo
)
Parameters
- nodeId
- Type: SystemInt32
Document node id - permission
- Type: CMS.DocumentEngineNodePermissionsEnum
Permission to check - culture
- Type: SystemString
Document culture code. If the culture is null the user allowed cultures check is not performed - userInfo
- Type: CMS.MembershipUserInfo
User to check
Return Value
Type:
AuthorizationResultEnumSee Also