set initial user as moderator

This commit is contained in:
ghost 2023-10-07 23:31:12 +03:00
parent df253ba1b0
commit a0b59500fc

View File

@ -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;
} }