Add setting for home airport restriction #104

This commit is contained in:
Nabeel Shahzad
2018-02-28 15:27:46 -06:00
parent e7868868c4
commit 3188f356eb
3 changed files with 12 additions and 4 deletions

View File

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