🐛 fix(AccountController): Supprime la vérification ROLE_ROOT pour accès ROOT.

This commit is contained in:
Serreau Jovann
2026-01-15 22:08:50 +01:00
parent 1b6f0bcde4
commit 853f7cb5cd

View File

@@ -99,7 +99,7 @@ class AccountController extends AbstractController
}
// --- SÉCURITÉ : PROTECTION ROOT ---
if (in_array('ROLE_ROOT', $account->getRoles()) && !$this->isGranted('ROLE_ROOT')) {
if (in_array('ROLE_ROOT', $account->getRoles())) {
$title = "Tentative d'accès non autorisée";
$details = sprintf("L'utilisateur %s a tenté de consulter l'Administrateur ROOT protégé : %s %s (ID: %d)",
$this->getUser()->getUserIdentifier(), $account->getFirstName(), $account->getName(), $account->getId()