Bulk Delete Locations does not work [sc-25100]

This commit is contained in:
Godfrey M 2024-03-19 14:26:40 -07:00
parent c7083488b2
commit 0d0984a400

View file

@ -106,11 +106,12 @@ class Location extends SnipeModel
*/
public function isDeletable()
{
return Gate::allows('delete', $this)
&& ($this->assets_count === 0)
&& ($this->assigned_assets_count === 0)
&& ($this->children_count === 0)
&& ($this->users_count === 0);
&& ($this->assets_count == 0)
&& ($this->assigned_assets_count == 0)
&& ($this->children_count == 0)
&& ($this->users_count == 0);
}
/**