It appears that after Vatican II, the Church teaching on religious freedom contradicts previous Church teaching on religious freedom. For example, according to Dignitatis Humanae, Pope Paul VI, December 7, 1965:
2. This Vatican Council declares that the human person has a right to religious freedom. This freedom means that all men are to be immune from coercion on the part of individuals or of social groups and of any human power, in such wise that no one is to be forced to act in a manner contrary to his own beliefs, whether privately or publicly, whether alone or in association with others, within due limits.
The council further declares that the right to religious freedom has its foundation in the very dignity of the human person as this dignity is known through the revealed word of God and by reason itself.(2) This right of the human person to religious freedom is to be recognized in the constitutional law whereby society is governed and thus it is to become a civil right."
However, according to Pope Pius IX, “Qui Pluribus” 1846:
" Especially fatal to the salvation of souls is that erroneous opinion that liberty of conscience and liberty of worship is the proper right of every man. By our Apostolic authority, we condemn this evil opinion."
Are these two teachings (1)Dignitatis Humanae and (2) Qui Pluribus - contradictory or not ?