mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-25 00:50:29 +00:00
User created via wallabag:install is now a SUPER_ADMIN 👑
This commit is contained in:
parent
704ed658a9
commit
8f06a8c416
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->setEmail($questionHelper->ask($this->defaultInput, $this->defaultOutput, $question));
|
||||||
|
|
||||||
$user->setEnabled(true);
|
$user->setEnabled(true);
|
||||||
|
$user->addRole('ROLE_SUPER_ADMIN');
|
||||||
|
|
||||||
$em->persist($user);
|
$em->persist($user);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue