Skip to content
Snippets Groups Projects
Commit 009a4ac6 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Issue #3273108 by jurgenhaas, rkoller: Add an easy and reliable kill-switch for ECA

parent 540f5789
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ abstract class EcaBase implements EventSubscriberInterface {
if (!Settings::get('eca_disable', FALSE)) {
$this->processor->execute($event, $event_name);
}
else {
else if (\Drupal::currentUser()->hasPermission('administer eca')) {
\Drupal::messenger()->addWarning('ECA is disabled in your settings.php file.');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment