Add weather to the dashboard for the current airport

This commit is contained in:
Nabeel Shahzad
2018-04-02 06:47:05 -05:00
parent cfd0853d79
commit bb73af3806
7 changed files with 75 additions and 58 deletions

View File

@@ -244,7 +244,7 @@ class PirepController extends Controller
# Are they allowed at this airport?
if (setting('pilots.only_flights_from_current')
&& Auth::user()->current_airport_id !== $pirep->dpt_airport_id) {
&& Auth::user()->curr_airport_id !== $pirep->dpt_airport_id) {
return $this->flashError(
'You are currently not at the departure airport!',
'frontend.pireps.create'