Updates to settings code for creating the ID and setting the order

This commit is contained in:
Nabeel Shahzad
2018-01-02 11:42:26 -06:00
parent 93786835af
commit b0907504b6
3 changed files with 81 additions and 21 deletions

View File

@@ -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;
}