aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Command/InstallCommand.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-02-05 13:55:50 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-02-05 13:55:50 +0100
commit8f06a8c416d2c83838e1aecd0ab80a3ff2b77de3 (patch)
treed90c6317263b110fab9d536f209d07489a1ea4c2 /src/Wallabag/CoreBundle/Command/InstallCommand.php
parent704ed658a990fee64cf8752beedcfbf30f8a5406 (diff)
downloadwallabag-8f06a8c416d2c83838e1aecd0ab80a3ff2b77de3.tar.gz
wallabag-8f06a8c416d2c83838e1aecd0ab80a3ff2b77de3.tar.zst
wallabag-8f06a8c416d2c83838e1aecd0ab80a3ff2b77de3.zip
User created via wallabag:install is now a SUPER_ADMIN :crown:
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/InstallCommand.php')
-rw-r--r--src/Wallabag/CoreBundle/Command/InstallCommand.php1
1 files changed, 1 insertions, 0 deletions
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
201 $user->setEmail($questionHelper->ask($this->defaultInput, $this->defaultOutput, $question)); 201 $user->setEmail($questionHelper->ask($this->defaultInput, $this->defaultOutput, $question));
202 202
203 $user->setEnabled(true); 203 $user->setEnabled(true);
204 $user->addRole('ROLE_SUPER_ADMIN');
204 205
205 $em->persist($user); 206 $em->persist($user);
206 207