Click or drag to resize
UserSecurityExtensionsIsAuthorizedPerDocument Method (UserInfo, Int32, String, NodePermissionsEnum)
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: 12.0.0
Syntax
C#
public static AuthorizationResultEnum IsAuthorizedPerDocument(
	this UserInfo user,
	int nodeId,
	string className,
	NodePermissionsEnum permission
)

Parameters

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

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