fix: isActive #7

Merged
afornerot merged 1 commits from fixsecu into master 2022-10-24 13:48:46 +02:00
1 changed files with 0 additions and 3 deletions
Showing only changes of commit f39f734359 - Show all commits

View File

@ -135,9 +135,6 @@ class SecurityController extends AbstractController
$user = $this->submituser($username, $firstname, $lastname, $email, $avatar, $niveau01, $em);
$user = $em->getRepository('App\Entity\Group')->calculateSSOGroup($user, $attributes);
} elseif ($this->getParameter('casAutoupdate')) {
if (!$user->Isactive()) {
return $this->redirect($this->generateUrl('app_noperm'));
}
$this->submitSSONiveau01($attributes, $em);
$this->submitSSOGroup($attributes, $em);
$this->updateuser($user, $firstname, $lastname, $email, $avatar, $em);