mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -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()
|
||||
{
|
||||
return $this->hasMany('\App\Models\Location', 'manager_id')->withTrashed();
|
||||
return $this->hasMany('\App\Models\Location', 'manager_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue