A vague reference to the “Middle Ages” is not good enough. Give us the specific cite.
The truth is that the Church in the Middle Ages commanded absolute obedience to the Holy Roman Pontiff. If people in the Middle Ages were caught saying the things that many people today say about the Pope, they would have been excommunicated.
Pope Gregory VII:
“He himself may be judged by no one.”
Saint Thomas Aquinas:
“The administration of this kingdom, therefore, is entrusted not to earthly kings, but to priests, so that spiritual and earthly things may be kept distinct; and in particular to the Supreme Priest, the successor of Peter, the Vicar of Christ, the Roman Pontiff, to whom all the kings of the Christian people should be subject, as if to the Lord Jesus Christ Himself.”
Pope Boniface VIII:
“But if the highest power of all err, it can be judged only by God, and not by man.”
Saint Catherine of Siena:
“For divine obedience never prevents us from obedience to the Holy Father: nay, the more perfect the one, the more perfect is the other. And we ought always to be subject to his commands and obedient unto death. However indiscreet obedience to him might seem, and however it should deprive us of mental peace and consolation, we ought to obey; and I consider that to do the opposite is a great imperfection, and deceit of the devil.”
Pope Pius II:
“Do you not know, you miserable man, that only divine authority binds the Roman Bishop? The Pope is only subject to Holy Scripture, revealed by the hand of God, and he is not bound by decrees of men. ”But we say that the pope is subject to reason, and the power of the Church is given for edification and not for destruction.” But even if you believe the Bishop of Rome to be in error, that does not give you the right to judge him, for only God can judge the Pope. No mortal man may accuse him of faults. Oh, how wrong is the opinion of many men: though they do not allow a king’s subjects to have any say against the king, they would allow it in the case of the pope even if God has given him power over all mortal men. Those stupid men are unconcerned that the Holy Apostolic Church has, from Saint Peter to this day, never been heard to teach anything that is contrary to orthodox faith. This privilege it has received from the Lord that it shall never succumb to wrong teachings for the gates of hell shall not prevail against it. Let this suffice concerning your praise of the Apostolic See.”