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

@@ -182,7 +182,7 @@ class PirepController extends Controller
# See if this user is at the current airport
if (setting('pilots.only_flights_from_current')
&& $user->current_airport_id !== $pirep->dpt_airport_id)
&& $user->curr_airport_id !== $pirep->dpt_airport_id)
{
throw new UserNotAtAirport();
}