mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
set initial user as approved
This commit is contained in:
parent
a0b59500fc
commit
6031ce59a2
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue