California Water Code Section 4102

The headgate shall be of such construction that it can be locked and kept closed by the watermaster.