Allow admin to set a user's airport to be anywhere

This commit is contained in:
Nabeel Shahzad
2018-09-08 14:07:31 -05:00
parent 146fe05bdc
commit d04565919b
2 changed files with 10 additions and 5 deletions

View File

@@ -48,7 +48,12 @@ class AirportRepository extends Repository implements CacheableInterface
}
foreach ($items as $i) {
$retval[$i->icao] = $i->icao.' - '.$i->name;
$s = $i->icao.' - '.$i->name;
if (!$only_hubs && $i->hub) {
$s .= ' (hub)';
}
$retval[$i->icao] = $s;
}
return $retval;