Browse Source

UrlResolver : correctif isInAdminArea()

feature/symfony6.1
Guillaume 3 years ago
parent
commit
f918ed513a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Resolver/UrlResolver.php

+ 1
- 1
Resolver/UrlResolver.php View File

@@ -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) ;
}

}

Loading…
Cancel
Save