]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Command/InstallCommand.php
User created via wallabag:install is now a SUPER_ADMIN :crown:
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Command / InstallCommand.php
index e6a06eea3f47785a0710a11255698a9bf1a1eeba..69fb0a6f5c2e62289421b34e30bcf84d0b2a4868 100644 (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);