Nothing herein contained shall be deemed to authorize any person or persons, to divert the waters of any river, creek, stream, canal or reservoir to the detriment of any person or persons having a prior right to the waters of such river, creek, stream, canal or reservoir.