User created via wallabag:install is now a SUPER_ADMIN 👑

This commit is contained in:
Nicolas Lœuillet 2016-02-05 13:55:50 +01:00
parent 704ed658a9
commit 8f06a8c416

View file

@ -201,6 +201,7 @@ class InstallCommand extends ContainerAwareCommand
$user->setEmail($questionHelper->ask($this->defaultInput, $this->defaultOutput, $question)); $user->setEmail($questionHelper->ask($this->defaultInput, $this->defaultOutput, $question));
$user->setEnabled(true); $user->setEnabled(true);
$user->addRole('ROLE_SUPER_ADMIN');
$em->persist($user); $em->persist($user);