mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-03-10 04:21:06 +00:00
set initial user as approved
This commit is contained in:
parent
a0b59500fc
commit
6031ce59a2
@ -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…
x
Reference in New Issue
Block a user