Pope John XXIII
Mater et Magistra §239
Mater et Magistra: On Christianity and Social Progress
239 In their economic and social activities, Catholics often come into contact with others who do not share their view of life. In such circumstances, they must, of course, bear themselves as Catholics and do nothing to compromise religion and morality. Yet at the same time they should show themselves animated by a spirit of understanding and unselfishness, ready to cooperate loyally in achieving objects which are good in themselves, or can be turned to good. Needless to say, when the Hierarchy has made a decision on any point Catholics are bound to obey their directives. The Church has the right and obligation not merely to guard ethical and religious principles, but also to declare its authoritative judgment in the matter of putting these principles into practice.
Source: Mater et Magistra (Vatican.va)