I believe when the govt told Daniel not to pray HE DISOBEYED We also have something called the separation of C & S
But the zoning and building codes don't forbid prayer or worship. They are for the protection of the people worshiping and the community. These are neutral regulations that are applicable to all whether they be a theater, sports arena, music hall, school or church.