Click or drag to resize
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.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
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: AuthorizationResultEnum
See Also