Skip to content

Commit

Permalink
allow use include layout in template
Browse files Browse the repository at this point in the history
  • Loading branch information
oallain committed Sep 5, 2023
1 parent 1f35846 commit ac21875
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EventSubscriber/MaintenanceEventsubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function handle(RequestEvent $event): void
{
$configuration = $this->configurationFactory->get();

if (!$event->isMainRequest()) {
return;
}

if (!$this->isMaintenanceVoter->isMaintenance($configuration, $event->getRequest())) {
return;
}
Expand Down

0 comments on commit ac21875

Please sign in to comment.