The 15th Court of Appeals on Thursday said the State Fair of Texas' policy of prohibiting people from bringing firearms onto the fairgrounds was lawful and upheld an early ruling from a trial court.

The state had argued that the policy violated a Texas law restricting local governments from limiting guns in most public places.

The court ruled that state law only applied to government entities, not private organizations like the State Fair.