Shulchan Aruch and commentators on various people who may not serve as dayanim.