It was legal, and any law or local code that says otherwise is unconstitutional.
Except his 2nd rights were revoked as a result of his felony conviction. Too bad, so sad....