In determining the amount of water available for appropriation, the board shall take into account, whenever it is in the public interest, the amounts of water needed to remain in the source for protection of beneficial uses, including any uses specified to be protected in any relevant water quality control plan established pursuant to Division 7 (commencing with Section 13000) of this code.
This section shall not be construed to affect riparian rights.