Click or drag to resize
DocumentSecurityHelperIsAuthorizedPerDocument Method (TreeNode, NodePermissionsEnum, Boolean, String, UserInfo)
Checks if the user is authorized for specified document (Check all CONTENT, CLASS and Document type permissions.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static AuthorizationResultEnum IsAuthorizedPerDocument(
	TreeNode node,
	NodePermissionsEnum permission,
	bool checkUserAllowedCultures,
	string culture,
	UserInfo userInfo
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
permission
Type: CMS.DocumentEngineNodePermissionsEnum
Permission
checkUserAllowedCultures
Type: SystemBoolean
Indicates if the allowed cultures of the user should be checked
culture
Type: SystemString
Culture to check
userInfo
Type: CMS.MembershipUserInfo
User to check

Return Value

Type: AuthorizationResultEnum
See Also