Make sure the seat hasn’t been deleted

This commit is contained in:
snipe 2017-11-02 21:07:59 -07:00
parent 1659c3f1a6
commit 104cc2bf11

View file

@ -268,7 +268,8 @@ class License extends Depreciable
return $this->licenseSeatsRelation()
->whereNull('asset_id')
->whereNull('assigned_to')
->whereNull('user_id');
->whereNull('user_id')
->whereNull('deleted_at');
}
public function getAvailSeatsCountAttribute()