Browse Source

set initial user as approved

main
ghost 1 year ago
parent
commit
6031ce59a2
  1. 3
      src/Service/UserService.php

3
src/Service/UserService.php

@ -49,9 +49,10 @@ class UserService @@ -49,9 +49,10 @@ class UserService
$this->save($user);
// Set initial user as moderator
// Set initial user as approved & moderator
if (1 === $user->getId())
{
$user->setApproved(true);
$user->setModerator(true);
$this->save($user);
}

Loading…
Cancel
Save