Click or drag to resize
DocumentSecurityHelperIsAuthorizedPerDocument Method (Int32, String, NodePermissionsEnum, 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(
	int nodeId,
	string className,
	NodePermissionsEnum permission,
	string culture,
	UserInfo userInfo
)

Parameters

nodeId
Type: SystemInt32
ID of node
className
Type: SystemString
Class name of the document
permission
Type: CMS.DocumentEngineNodePermissionsEnum
Permission
culture
Type: SystemString
Culture to check
userInfo
Type: CMS.MembershipUserInfo
User to check

Return Value

Type: AuthorizationResultEnum
See Also