From: Nicolas LÅ“uillet Date: Fri, 5 Feb 2016 12:55:50 +0000 (+0100) Subject: User created via wallabag:install is now a SUPER_ADMIN :crown: X-Git-Tag: 2.0.0-beta.1~51^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=8f06a8c416d2c83838e1aecd0ab80a3ff2b77de3;p=github%2Fwallabag%2Fwallabag.git User created via wallabag:install is now a SUPER_ADMIN :crown: --- diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index e6a06eea..69fb0a6f 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php @@ -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);