It is illegal to discriminate against gays.  A church membership is a not a get-out-of-jail free card to let you slander and bash gays all you please, motivated by ancient superstitions. Surely, it would also be foolish to teach children to be bigots. The obsolete Catholic religion is no longer a legitimate excuse to harm people who did nothing to you.