Any use of water for generating electric power at any given time of the year which is in excess of the water appropriated and beneficially used for irrigation purposes by the district at that period of the year shall be subject to all prior existing appropriations by any municipal corporation which is proceeding in good faith in the expenditure of money and the construction of works designed to divert the water appropriated.
Ca. Water Code § 22122