UIContextHelperCheckElementAccess 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.PortalEngineAssembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.2.23
Syntax public static ElementAccessCheckResult CheckElementAccess(
UIElementInfo element,
MacroResolver resolver = null,
bool automaticReadCheck = true
)
Parameters
- element
- Type: CMS.ModulesUIElementInfo
Element info - resolver (Optional)
- Type: CMS.MacroEngineMacroResolver
Macro resolver - automaticReadCheck (Optional)
- Type: SystemBoolean
Indicates whether read module permission should be checked. Has no effect when element's ElementCheckModuleReadPermission property is false.
Return Value
Type:
ElementAccessCheckResultSee Also