From 104cc2bf11d87fa5d7c14755728787ef4d74849a Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 2 Nov 2017 21:07:59 -0700 Subject: [PATCH] =?UTF-8?q?Make=20sure=20the=20seat=20hasn=E2=80=99t=20bee?= =?UTF-8?q?n=20deleted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/License.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/License.php b/app/Models/License.php index 4b2d696282..a5aa8572b3 100755 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -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()