Ver código fonte

fix OnKernelRequest bug

Olivier Massot 7 meses atrás
pai
commit
d1018fcf36
1 arquivos alterados com 1 adições e 3 exclusões
  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