aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2016-02-05 14:13:13 +0100
committerJeremy Benoist <j0k3r@users.noreply.github.com>2016-02-05 14:13:13 +0100
commitcc67a81818551deed77bd42aba8825c18eb6fad4 (patch)
treed90c6317263b110fab9d536f209d07489a1ea4c2 /src
parent704ed658a990fee64cf8752beedcfbf30f8a5406 (diff)
parent8f06a8c416d2c83838e1aecd0ab80a3ff2b77de3 (diff)
downloadwallabag-cc67a81818551deed77bd42aba8825c18eb6fad4.tar.gz
wallabag-cc67a81818551deed77bd42aba8825c18eb6fad4.tar.zst
wallabag-cc67a81818551deed77bd42aba8825c18eb6fad4.zip
Merge pull request #1652 from wallabag/v2-superadmin
User created via wallabag:install is now a SUPER_ADMIN :crown:
Diffstat (limited to 'src')
-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