They were allowed at least one soldier from the line as a personal servant. Officers were not allowed to swear, express disrespect for their commanding officer or federal or state officials, be intoxicated on duty or absent without leave, or participate in duels.
The 19th amendment was passed in 1920 (gave the right for women to vote), while the 15th amendment was passed in 1870 (gave the right for African Americans to vote).