Commit ad22d3c7 by Julien Jorry

Fix installation : on est loggué en super admin par défaut après installation du…

Fix installation : on est loggué en super admin par défaut après installation du Kohinos et non en prestataire (bug)
parent b97c4831
......@@ -34,7 +34,3 @@ yarn-error.log
/mlc.test-access.log
/mlc.test-error.log
###< symfony/webpack-encore-bundle ###
###> lexik/jwt-authentication-bundle ###
/config/jwt/*.pem
###< lexik/jwt-authentication-bundle ###
......@@ -136,7 +136,6 @@ class IndexController extends AbstractController
$user->setEnabled(true);
$user->addPossiblegroup($group);
$user->addGroup($group);
$user->addRole('ROLE_SUPER_ADMIN');
$form = $this->createForm(InstallFormType::class, ['user' => $user]);
$form->handleRequest($request);
......@@ -159,7 +158,6 @@ class IndexController extends AbstractController
$presta->setSiret(' ');
$groupePresta = $repogroup->findOneBy(array('name' => 'Prestataire'));
$user->addPossiblegroup($groupePresta);
$user->addGroup($groupePresta);
$presta->addUser($user);
$presta->setGroupe($groupe);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment