Browse Source

set initial user as moderator

main
ghost 1 year ago
parent
commit
a0b59500fc
  1. 7
      src/Service/UserService.php

7
src/Service/UserService.php

@ -49,6 +49,13 @@ class UserService @@ -49,6 +49,13 @@ class UserService
$this->save($user);
// Set initial user as moderator
if (1 === $user->getId())
{
$user->setModerator(true);
$this->save($user);
}
// Return user data
return $user;
}

Loading…
Cancel
Save