A free open source IT asset/license management system
Fixed locations isDeletable check
snipea6a65b752307
diff --git a/app/Models/Location.php b/app/Models/Location.phpindex 145d6cef9a..1122b5da15 100755--- a/app/Models/Location.php+++ b/app/Models/Location.php@@ -106,6 +106,7 @@ class Location extends SnipeModelreturn Gate::allows('delete', $this)&& ($this->assignedAssets()->count() === 0)&& ($this->assets()->count() === 0)+ && ($this->children()->count() === 0)&& ($this->users()->count() === 0);}