Default settings to false

This commit is contained in:
Nabeel Shahzad
2021-01-25 07:06:27 -05:00
parent fc7ad7eb6a
commit 5821067231
2 changed files with 3 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ class PirepService extends Service
// See if this user is at the current airport
/* @noinspection NotOptimalIfConditionsInspection */
if (setting('pilots.only_flights_from_current')
if (setting('pilots.only_flights_from_current', false)
&& $user->curr_airport_id !== $pirep->dpt_airport_id) {
throw new UserNotAtAirport($user, $pirep->dpt_airport);
}