mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-22 20:54:52 +00:00
set initial user as moderator
This commit is contained in:
parent
df253ba1b0
commit
a0b59500fc
@ -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…
x
Reference in New Issue
Block a user