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