UserSecurityExtensions IsAuthorizedPerDocument Method (UserInfo, TreeNode,  NodePermissionsEnum , Boolean, String)Kentico 8.1 API Reference
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.0.0.0 (8.1.5347.20411)

Parameters

user
Type: CMS.Membership UserInfo
User to check
node
Type: CMS.DocumentEngine TreeNode
Document node
permissions
Type:  CMS.DocumentEngine NodePermissionsEnum 
Permissions to check
checkUserAllowedCultures (Optional)
Type: OnlineSystem Boolean
Indicates if the allowed cultures of the user should be checked
targetCultureCode (Optional)
Type: OnlineSystem String
Culture code of the document which should be checked. If null or empty user preferred culture is used instead.

Return Value

Type: AuthorizationResultEnum
See Also