Click or drag to resize
DocumentSecurityHelper.IsAuthorizedPerTreeNode 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: 10.0.0
Syntax
C#
public static AuthorizationResultEnum IsAuthorizedPerTreeNode(
	TreeNode node,
	NodePermissionsEnum permission,
	string culture,
	UserInfo userInfo
)

Parameters

node
Type: CMS.DocumentEngine.TreeNode
Document node
permission
Type: CMS.DocumentEngine.NodePermissionsEnum
Permission to check
culture
Type: System.String
Document culture code. If the culture is null the user allowed cultures check is not performed
userInfo
Type: CMS.Membership.UserInfo
User to check

Return Value

Type: AuthorizationResultEnum
See Also