No Catholic is permitted to be a member of Freemasonry, ever. Nothing has changed. It's not that it is discouraged; it's disallowed.
From a letter of Pope Leo XIII on December 8, 1892 to the Italian people:
"Let us remember that Christianity and Freemasonry are essentially incompatible, to such an extent, that to become united with one means being divorced from the other. Let us, therefore, expose Freemasonry as the enemy of God, of the Church and of our Motherland."
Leo XIII's 13th of October 13, 1884 vision of the future of the Church occurred exactly 33 years prior, to the day, to the miracle of the sun at Fatima.
Some bishops have allowed membership in the Masons. In those cases, the Catholics who join because their bishops approve, the bishop is at fault, not the Catholic who sought out the opinion of his bishop.