C. Court mandated opening, closing.

Under both the Bagley-Keene and Brown Acts, a court may grant mandamus, injunctive or declaratory relief to stop or prevent violations of the Acts. Cal. Gov't Code §§ 11130 (Bagley-Keene Act); 54960 (Brown Act). A court may also invalidate the body's decision in certain circumstances. Cal. Gov't Code §§ 11130 (Bagley-Keene Act); 54960.1 (Brown Act). In addition, the court has discretion to award court costs or attorneys' fees to a prevailing plaintiff. Cal. Gov't Code §§ 11130.5 (Bagley-Keene Act); 54960.5 (Brown Act). Pursuant to one of these avenues for relief, a court may direct a meeting to be opened or closed, depending on the nature of the relief requested.