Skip to content
Snippets Groups Projects

Issue #3471460 by ahmad khader: Fix users having access to the layout builder on entities regardless of whether the layout is enabled

Merged Issue #3471460 by ahmad khader: Fix users having access to the layout builder on entities regardless of whether the layout is enabled
Files
4
@@ -204,10 +204,7 @@ class AccessManager implements AccessManagerInterface {
// Allow other modules to add additional contexts.
if ($plugin instanceof LayoutBuilderPermissionInterface) {
$event = new LayoutBuilderPermissionPluginContexts($plugin, $operation, $route_match, $section_storage);
\Drupal::service('event_dispatcher')->dispatch(
LayoutBuilderPermissionPluginContexts::EVENT_NAME,
$event
);
\Drupal::service('event_dispatcher')->dispatch($event);
}
}
Loading