♻️ refactor(Security): Simplifie la vérification de INTRANET_LOCK pour plus de clarté.
This commit is contained in:
@@ -34,7 +34,7 @@ class IntranetLocked
|
||||
return;
|
||||
}
|
||||
|
||||
if (($_ENV['INTRANET_LOCK'] ?? 'false') === "true") {
|
||||
if ($_ENV['INTRANET_LOCK'] == 'true') {
|
||||
$response = new Response($this->environment->render('security/locked.twig'));
|
||||
$response->setStatusCode(Response::HTTP_FORBIDDEN);
|
||||
$requestEvent->setResponse($response);
|
||||
|
||||
Reference in New Issue
Block a user