diff --git a/app/Services/UserService.php b/app/Services/UserService.php index f69b65c9..a60b0f0d 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -54,7 +54,7 @@ class UserService extends Service public function createPilot(User $user, array $groups = null) { // Determine if we want to auto accept - if (setting('pilots.auto_accept') === true) { + if (get_truth_state(setting('pilots.auto_accept', false)) === true) { $user->state = UserState::ACTIVE; } else { $user->state = UserState::PENDING;