"I know that before the Civil War various Southern States passed "Black Code" laws that outlawed Blacks(Freedmen or Slave) from owning or carrying firearms."
Some states did have those type laws. Some did not.