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
8e358faebc
commit
da34b82b3e
|
@ -383,7 +383,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
||||||
*/
|
*/
|
||||||
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