UserSecurityExtensionsIsAuthorizedPerDocument Method (UserInfo, TreeNode, NodePermissionsEnum, Boolean, String) |
Checks if the user is authorized for specified document (Check all CONTENT, CLASS and Document type permissions.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax public static AuthorizationResultEnum IsAuthorizedPerDocument(
this UserInfo user,
TreeNode node,
NodePermissionsEnum[] permissions,
bool checkUserAllowedCultures = true,
string targetCultureCode = null
)
Parameters
- user
- Type: CMS.MembershipUserInfo
User to check - node
- Type: CMS.DocumentEngineTreeNode
Document node - permissions
- Type: CMS.DocumentEngineNodePermissionsEnum
Permissions to check - checkUserAllowedCultures (Optional)
- Type: SystemBoolean
Indicates if the allowed cultures of the user should be checked - targetCultureCode (Optional)
- Type: SystemString
Culture code of the document which should be checked. If null or empty user preferred culture is used instead.
Return Value
Type:
AuthorizationResultEnumUsage 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