No assignee of any claim against any county, city or municipal corporation of this state or any county, city or municipal officer in this state, for money claimed to have been illegally charged or exacted by such county, city or municipal corporation or such officer, except money collected as taxes or license, or money due on contract, shall have the right to institute or maintain any action or suit for the recovery thereof in any court in this state.
ORS 30.380