Преглед на файлове

fix OnKernelRequest bug

Olivier Massot преди 7 месеца
родител
ревизия
d1018fcf36
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  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