How could Joseph see God before priesthood was restored?

A friend points out that the First Vision is dated to 1820, while the Aaronic Priesthood restoration is dated to 1829, and asks how that fits Doctrine and Covenants 84:21–22.

Exchange 1 of 4

“Was Joseph already ordained when the First Vision happened?”