mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 09:35:28 +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);
|
$this->save($user);
|
||||||
|
|
||||||
|
// Set initial user as moderator
|
||||||
|
if (1 === $user->getId())
|
||||||
|
{
|
||||||
|
$user->setModerator(true);
|
||||||
|
$this->save($user);
|
||||||
|
}
|
||||||
|
|
||||||
// Return user data
|
// Return user data
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue