-
Improvement
-
Resolution: Done
-
Minor
-
4.3.0
-
-
MOODLE_403_STABLE
-
MOODLE_404_STABLE
-
Moodle Apps - 2024 i1.2
Avoid calling the WS core_search_get_search_areas_list after login. This is done by AddonBlockSearchForumsHandlerService.
Instead of calling it in isEnabled, we could create a component for the block (instead of using CoreBlockOnlyTitleComponent) and check in there if the block needs to be rendered or not.
Another alternative is to create a new callback in the delegate/handler to check this before rendering the block.