Homosexual persons, as human persons, have the same rights as all persons including the right of not being treated in a manner which offends their personal dignity (cf. no. 10). Among other rights, all persons have the right to work, to housing, etc. Nevertheless, these rights are not absolute. They can be legitimately limited for objectively disordered external conduct. This is sometimes not only licit but obligatory. This would obtain moreover not only in the case of culpable behavior but even in the case of actions of the physically or mentally ill. Thus it is accepted that the state may restrict the exercise of rights, for example, in the case of contagious or mentally ill persons, in order to protect the common good.