In its ruling, the High Court quashed a long-standing 2003 arrangement by the Archaeological Survey of India that had restricted Hindu worship to Tuesdays and permitted Friday prayers for the Muslim community.