You need to actually ask a question, but.... churches are not state actors, and the state will avoid involving itself in canon law. For example, if a church's canon law provides that women should not be permitted to be ministers, that's going to be lawful even though a non-religious employer could not have an equivalent rule discriminating against female employees.