Though religions can have personal laws. Religious institutions do not have right to ban women from entering into worship places.
Temples in India can have Gender-Specific rules
This example is against.