Commit ab46fc60 by Damien Moulard

prevent acces to installation page when installed

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