The black codes restricted the lives and the rights of many blacks throughout the southern states. Commonly written into the black codes was a restriction that stopped blacks the freedom to sue in court. Blacks were given as little freedom as possible and this included rights in court.