mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Do not count deleted locations in managedLocation check on user delete
This commit is contained in:
parent
90cddb7aee
commit
5e19178a30
|
@ -269,7 +269,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo
|
||||||
**/
|
**/
|
||||||
public function managedLocations()
|
public function managedLocations()
|
||||||
{
|
{
|
||||||
return $this->hasMany('\App\Models\Location', 'manager_id')->withTrashed();
|
return $this->hasMany('\App\Models\Location', 'manager_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue