Fix SettingsController saving boolean value as 'on'

This commit is contained in:
Kevin Susanto
2018-09-04 16:11:51 +08:00
parent c95fe3c971
commit f46e5090ae
3 changed files with 6 additions and 2 deletions

View File

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