Click or drag to resize
UserSecurityExtensionsIsAuthorizedPerTreeNode Method (UserInfo, TreeNode, NodePermissionsEnum, Boolean)
Checks whether the user is authorized for the given document and permission, returns the authorization result.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static AuthorizationResultEnum IsAuthorizedPerTreeNode(
	this UserInfo user,
	TreeNode node,
	NodePermissionsEnum permission,
	bool checkUserAllowedCultures = true
)

Parameters

user
Type: CMS.MembershipUserInfo
User to check
node
Type: CMS.DocumentEngineTreeNode
Document node
permission
Type: CMS.DocumentEngineNodePermissionsEnum
Permission to check
checkUserAllowedCultures (Optional)
Type: SystemBoolean
Indicates if the allowed cultures of the user should be checked

Return Value

Type: AuthorizationResultEnum

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UserInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also