Do not count deleted locations in managedLocation check on user delete

This commit is contained in:
snipe 2019-02-12 23:32:10 -08:00
parent 90cddb7aee
commit 5e19178a30

View file

@ -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');
}
/**