Browse Source

fix OnKernelRequest bug

Olivier Massot 7 months ago
parent
commit
d1018fcf36
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/EventListener/OnKernelRequestPreRead.php

+ 1 - 3
src/EventListener/OnKernelRequestPreRead.php

@@ -43,9 +43,7 @@ class OnKernelRequestPreRead implements EventSubscriberInterface
         /** @var Access $access */
         $access = $this->security->getUser();
         if ($access) {
-            $timeConstraintEnabled = (bool) StringsUtils::unquote(
-                $this->requestStack->getMainRequest()->get('_time_constraint', true)
-            );
+            $timeConstraintEnabled = (bool) $this->requestStack->getMainRequest()->get('_time_constraint', true);
 
             if ($timeConstraintEnabled) {
                 // Configure les filtres pour prendre en compte les contraintes temporelles