a manual of moral theology for english-speaking countries
p. 94
While outside the limits of the territory in which one is domiciled, there is no obligation to obey the particular laws of that territory, for the law is territorial and does not bind beyond the limits of the territory for which it was made.
A stranger (peregrinus), or one who has a domicil in another place, but at present is staying elsewhere, is more probably not bound by the particular laws of the place where he is staying; for he is not subject to their authority by having either a domicil or a quasi-domicil in the place. And so, if an English Catholic happened to be in Dublin on the feast of St. Patrick, which is kept there as a day of obligation, he would not be bound to hear Mass; nor would a Dublin man who happened to be staying on that day in England. However, a stranger staying in a place where the common law of the Church is observed, is bound to act according to its provisions, though there may be a dispensation from its observance in the place where he has his domicil. And so an English Catholic staying in Rome should abstain from flesh meat on Saturday as well as on Friday. Moreover, any contracts that he may enter into or crimes that he may commit subject him to the laws of the country where he is staying in those respects.
Homeless people (vagi) are treated as strangers.
Regulars and probably their monasteries are exempt from episcopal authority, and so in general are not subject to the laws made by the Bishops for their dioceses. There are, however, many exceptions to this general
Strangers are certainly not bound by the particular laws of the place where they are staying. C.J.C., can. 14, sec. 1, 2°.
Homeless people (vagi) are bound by both the general and the particular laws which are in force in the place where they are staying. C.J.C., can. 14, sec. 2.