mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Fixed locations isDeletable check
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
db73f80058
commit
a6a65b7523
|
@ -106,6 +106,7 @@ class Location extends SnipeModel
|
|||
return Gate::allows('delete', $this)
|
||||
&& ($this->assignedAssets()->count() === 0)
|
||||
&& ($this->assets()->count() === 0)
|
||||
&& ($this->children()->count() === 0)
|
||||
&& ($this->users()->count() === 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue