diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-05 13:55:50 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-05 13:55:50 +0100 |
commit | 8f06a8c416d2c83838e1aecd0ab80a3ff2b77de3 (patch) | |
tree | d90c6317263b110fab9d536f209d07489a1ea4c2 /src | |
parent | 704ed658a990fee64cf8752beedcfbf30f8a5406 (diff) | |
download | wallabag-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')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/InstallCommand.php | 1 |
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 | ||