SimBrief integration #405 (#635)

* SimBrief integration #405

* Add briefing as API response; add acars_xml field #405
This commit is contained in:
Nabeel S
2020-03-23 09:31:35 -04:00
committed by GitHub
parent 04b9e37e1d
commit 9e5386264f
70 changed files with 6816 additions and 192 deletions

View File

@@ -130,7 +130,11 @@ class FlightService extends Service
*/
public function filterSubfleets($user, $flight)
{
/** @var \Illuminate\Support\Collection $subfleets */
$subfleets = $flight->subfleets;
if ($subfleets === null || $subfleets->count() === 0) {
return $flight;
}
/*
* Only allow aircraft that the user has access to in their rank