Checks the permissions of all UI elements hierarchically starting with specified UI element.
Use optional parameter (contextResolver) and macro in ElementAccessCondition will be also checked.
Use two optional parameters (isDialog, rootElementId) if your ui element is dialog.
In case of insufficient permissions appropriate redirection is made.
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- element
- Type: CMS.Modules UIElementInfo
UI element info
- contextResolver (Optional)
- Type: CMS.MacroEngine MacroResolver
The context resolver for macro in ElementAccessCondition.
- rootElementId (Optional)
- Type: System Int32
The root element ID.
- redirectToAccessDenied (Optional)
- Type: System Boolean
Indicates whether not fulfillment permissions should cause redirect to access denied
Return Value
Type: BooleanReturns false if UI current user is not authorized per UI element (requires disabled redirectToAccessDenied parameter)
See Also