Legal battle to keep church doors open