Of course, it is illegal to prevent members in good standing from running for office and it is one of my major claims against the MCA as they refused to put me on the ballot.
From the Monitor:
https://highdesertdirt.com/mca/docs/2013-march-april-mca-monitor/
I. Candidate Eligibility:
A slate of candidates, all of whom are members in good standing of the Meadview Civic Association, shall be selected by a nominating committee …
I have yet to find any other HOA controlling who can run for the Board aside from limiting to members in good standing.