mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-15 21:41:06 +00:00
Merge pull request #1652 from wallabag/v2-superadmin
User created via wallabag:install is now a SUPER_ADMIN 👑
This commit is contained in:
commit
cc67a81818
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue