Click or drag to resize
UIContextHelper.CheckElementAccess Method
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.2.23
Syntax
C#
public static ElementAccessCheckResult CheckElementAccess(
	UIElementInfo element,
	MacroResolver resolver = null,
	bool automaticReadCheck = true
)

Parameters

element
Type: CMS.Modules.UIElementInfo
Element info
resolver (Optional)
Type: CMS.MacroEngine.MacroResolver
Macro resolver
automaticReadCheck (Optional)
Type: System.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