Do not count deleted locations in managedLocation check on user delete

This commit is contained in:
snipe 2019-02-12 23:33:01 -08:00
parent 8e358faebc
commit da34b82b3e

View file

@ -383,7 +383,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
*/
public function managedLocations()
{
return $this->hasMany('\App\Models\Location', 'manager_id')->withTrashed();
return $this->hasMany('\App\Models\Location', 'manager_id');
}
/**