Merge pull request #1652 from wallabag/v2-superadmin

User created via wallabag:install is now a SUPER_ADMIN 👑
This commit is contained in:
Jeremy Benoist 2016-02-05 14:13:13 +01:00
commit cc67a81818

View file

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