From 6031ce59a2fad9287595e500efa09889a3156c00 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 8 Oct 2023 01:01:18 +0300 Subject: [PATCH] set initial user as approved --- src/Service/UserService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Service/UserService.php b/src/Service/UserService.php index 0b8f52b..1b7fd10 100644 --- a/src/Service/UserService.php +++ b/src/Service/UserService.php @@ -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); }