Click or drag to resize
UserSecurityExtensionsIsAuthorizedPerTreeNode Method (UserInfo, Int32, NodePermissionsEnum, String)
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: 8.2.23
public static AuthorizationResultEnum IsAuthorizedPerTreeNode(
	this UserInfo user,
	int nodeId,
	NodePermissionsEnum permission,
	string culture


Type: CMS.MembershipUserInfo
User to check
Type: SystemInt32
Document node id
Type: CMS.DocumentEngineNodePermissionsEnum
Permission to check
Type: SystemString
Document culture code. If the culture is null the user allowed cultures check is not performed

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