This is scholasticism. This was the main viewpoint of the Roman Catholic Church, especially in the days before Protestantism and the breakaway sects. This worldview espoused that the RCC was the final arbiter of morality and set all the rules for everyday moral living.