SAN FRANCISCO (AP) — The California Supreme Court says the public has the right to access emails and text messages about government business sent on California officials’ private accounts.

The ruling by a unanimous court on Thursday clears up a murky area of law in the Golden State.

READ MORE: Looming La Niña May Push Western Drought From Bad to Worse

The use of private email accounts by public officials has faced scrutiny in recent years, with some using it as a way to avoid disclosure. Many states treat those emails as public records.

READ MORE: Update: Fawn Fire Near Redding Grows To 7,500 Acres Overnight; Firefighters Look To Cooler Weather

But opponents have raised privacy concerns. They say public officials sometimes need confidentiality to discuss unpopular views.

The lawsuit before the California Supreme Court involved messages on private devices used by San Jose’s mayor and members of the city council.

MORE NEWS: Air Quality Advisory Extended Through Monday Due To Wildfire Smoke

© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.