Updates to settings code for creating the ID and setting the order
This commit is contained in:
@@ -42,7 +42,7 @@ class FlightController extends AppBaseController
|
||||
$where = ['active' => true];
|
||||
|
||||
// default restrictions on the flights shown. Handle search differently
|
||||
if (config('phpvms.only_flights_from_current')) {
|
||||
if (setting('flights.only_flights_from_current')) {
|
||||
$where['dpt_airport_id'] = Auth::user()->curr_airport_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user