The right to vote and the right to run for election are protected by the Canadian Charter of Rights and Freedoms (adopted in April 1982), which states in Section 3:
3. Every citizen of Canada has the right to vote in an election of members of the House of Commons or of a legislative assembly and to be qualified for membership therein.
These rights are also protected by the Québec Charter of Human Rights and Freedoms: The right to vote and run for election.
22. Every person legally capable and qualified has the right to be a candidate and to vote at an election.
1975, c. 6, a. 22.