Don't show in progress PIREPs in admin and order the map data

This commit is contained in:
Nabeel Shahzad
2018-05-09 17:58:51 -05:00
parent 4fa024045d
commit 42c6a11780
3 changed files with 9 additions and 2 deletions

View File

@@ -240,7 +240,8 @@ class Pirep extends Model
*/
public function getReadOnlyAttribute(): bool
{
return $this->state !== PirepState::PENDING;
return $this->state !== PirepState::PENDING
&& $this->state != PirepState::IN_PROGRESS;
}
/**