🐛 fix(AccountController): Supprime la vérification ROLE_ROOT pour accès ROOT.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user