Change setting name for pilot flight restriction; some cosmetics

This commit is contained in:
Nabeel Shahzad
2018-01-03 20:56:46 -06:00
parent 4272946dba
commit 61ea069481
6 changed files with 33 additions and 17 deletions

View File

@@ -42,7 +42,7 @@ class FlightController extends AppBaseController
$where = ['active' => true];
// default restrictions on the flights shown. Handle search differently
if (setting('flights.only_flights_from_current')) {
if (setting('pilots.only_flights_from_current')) {
$where['dpt_airport_id'] = Auth::user()->curr_airport_id;
}