Explorar el Código

fix OnKernelRequest bug

Olivier Massot hace 7 meses
padre
commit
d1018fcf36
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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