Explorar el Código

UrlResolver : correctif isInAdminArea()

develop
Guillaume hace 3 años
padre
commit
f918ed513a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      Resolver/UrlResolver.php

+ 1
- 1
Resolver/UrlResolver.php Ver fichero

@@ -43,7 +43,7 @@ class UrlResolver
$requestAttributes = $this->requestStack->getCurrentRequest()->attributes->all();
$route = isset($requestAttributes['_route']) ? $requestAttributes['_route'] : false;

return $route && ($route == 'easyadmin' || strpos($route, 'admin_') !== false) ;
return $route && (in_array($route, ['sov_login', 'sov_logout']) || strpos($route, 'admin_') !== false) ;
}

}

Cargando…
Cancelar
Guardar