UIContextHelper CheckElementAccess Method Kentico 8.0 API Reference
Checks permission and access condition condition for single UI element. If element's ElementCheckModuleReadPermission property and automaticReadCheck are set, read permission for element's module is also checked.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

element
Type: CMS.Modules UIElementInfo
Element info
resolver (Optional)
Type: CMS.MacroEngine MacroResolver
Macro resolver
automaticReadCheck (Optional)
Type: OnlineSystem Boolean
Indicates whether read module permission should be checked. Has no effect when element's ElementCheckModuleReadPermission property is false.

Return Value

Type: ElementAccessCheckResult
See Also