Setting which filters out aircraft not at the departure airport #171

This commit is contained in:
Nabeel Shahzad
2018-02-09 15:07:34 -06:00
parent 13b4a3854b
commit 9b55a9691f
5 changed files with 53 additions and 14 deletions

View File

@@ -132,7 +132,6 @@ class CreateSettingsTable extends Migration
'name' => 'PIREP duplicate time check',
'group' => 'pireps',
'value' => 10,
'default' => 10,
'type' => 'int',
'description' => 'The time in minutes to check for a duplicate PIREP',
]);
@@ -141,7 +140,6 @@ class CreateSettingsTable extends Migration
'name' => 'Hide Cancelled PIREPs',
'group' => 'pireps',
'value' => true,
'default' => true,
'type' => 'boolean',
'description' => 'Hide any cancelled PIREPs in the front-end',
]);
@@ -150,11 +148,18 @@ class CreateSettingsTable extends Migration
'name' => 'Restrict Aircraft to Ranks',
'group' => 'pireps',
'value' => true,
'default' => true,
'type' => 'boolean',
'description' => 'Aircraft that can be flown are restricted to a user\'s rank',
]);
$this->addSetting('pireps.only_aircraft_at_dep_airport', [
'name' => 'Restrict Aircraft At Departure',
'group' => 'pireps',
'value' => false,
'type' => 'boolean',
'description' => 'Only allow aircraft that are at the departure airport',
]);
/**
* PILOTS
*/