Click or drag to resize
DocumentSecurityHelperIsAuthorizedPerTreeNode Method (TreeNode, 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.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static AuthorizationResultEnum IsAuthorizedPerTreeNode(
	TreeNode node,
	NodePermissionsEnum permission,
	string culture,
	UserInfo userInfo
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
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: AuthorizationResultEnum
See Also