mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +00:00
set initial user as approved
This commit is contained in:
parent
a0b59500fc
commit
6031ce59a2
1 changed files with 2 additions and 1 deletions
|
|
@ -49,9 +49,10 @@ class UserService
|
||||||
|
|
||||||
$this->save($user);
|
$this->save($user);
|
||||||
|
|
||||||
// Set initial user as moderator
|
// Set initial user as approved & moderator
|
||||||
if (1 === $user->getId())
|
if (1 === $user->getId())
|
||||||
{
|
{
|
||||||
|
$user->setApproved(true);
|
||||||
$user->setModerator(true);
|
$user->setModerator(true);
|
||||||
$this->save($user);
|
$this->save($user);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue