Can a via be placed in between the pads of a resistor?
If the boards are machine assembled and do not have plugged vias you must ensure there is some solder mask between pads and vias, otherwise solder paste can wick into the via, making for a poor joint on the pad.