Commit ab46fc60 by Damien Moulard

prevent acces to installation page when installed

parent 77fe9c22
......@@ -144,10 +144,10 @@ class IndexController extends AbstractController
public function installationAction(Request $request)
{
$siege = $this->em->getRepository(Siege::class)->findOneById(1);
// if (!empty($siege)) {
// // Installation déjà effectuée !
// return $this->redirectToRoute('index');
// }
if (!empty($siege)) {
// Installation déjà effectuée !
return $this->redirectToRoute('index');
}
$repogroup = $this->em->getRepository(Usergroup::class);
$group = $repogroup->findOneBy(array('name' => 'Super Admin'));
if (empty($group)) {
......
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