Girls wearing leggings were told they couldn't fly United Airlines because they were dressed inappropriately

United Airlines didn't let girls board a flight from Denver to Minneapolis because they were wearing leggings.

People on Twitter found out and were upset.

The policy only applies to people flying on "company benefit travel."

That means the average customer can fly with leggings.

Still, the policy appears sexist.

Let's call this whole ordeal #LeggingsGate.

On Saturday, Shannon Watts, the founder of Moms Demand Action, tweeted that two girls had been barred from boarding their United Airlines flight from Denver to Minneapolis. The reason? They were wearing leggings.

Right then and there, they were asked to change into something more appropriate.

"We heard the gate agent say, 'I don't make the rules, I just enforce them,'" Watts said in an email to Mic. "We asked the family what was going on. They said their daughter's leggings (gray, not too tight) were deemed inappropriate. They told us two other girls were turned away and not allowed to board because they didn't have any other clothing. The girl — who looked 10 or 11 — had a dress from trip to Hawaii in her backpack and put that on over her leggings and was allowed to board."

Of course, as all this information rolled out on Twitter, all hell broke loose.

When United tweeted back at Watts and other concerned citizens, it didn't make it any better, with them stating that they do indeed have the right to refuse customers who don't abide by their dress code.

Can women not fly a United flight with leggings anymore? Is there suddenly a dress code we should all be made aware of?

There was also the fact that while these two girls were barred from their flight, their father, who was allowed to board, was wearing shorts, presumably an equally casual garment.

"The girl pulled a dress on," Watts told the New York Times. "But please keep in mind that the dad had on shorts that did not hit his knee — they stopped maybe two or three inches above his knee — and there was no issue with that."

That's when the "This is sexist and wrong" alarms went off in full force.

Amid all this confusion, celebrities rushed to weigh in, with some celebrities, like Sarah Silverman, reaching out to United on Twitter.

Now, rest assured, everyone, you can absolutely wear leggings on a United flight as a passenger.

The rules come in, according to United, when a customer is flying on company benefit travel, meaning that they're flying on a pass that's afforded to United employees and eligible dependents that makes flying very, very cheap or free on a stand-by basis.

That's when the dress code comes in.

"It's not that we want our standby travelers to come in wearing a suit and tie or that sort of thing," Jonathan Guerin, a spokesman for United, told the New York Times. "We want people to be comfortable when they travel as long as it's neat and in good taste for that environment."

But is this dress code still sexist? Yes.

Now, whether or not United wants to have a dress code for their employees is their right, of course. but people are upset because this policy seems to only be enforced on women. It's the different standards for men and women (no matter their age) in that dress code that's the problem.

"I have five kids: Four of them are women," Watts told Mic. "They wear yoga pants all of the time when flying. As a Premiere United flier, I think this policy is arbitrary and sexist. It singles out women for their clothing and sexualizes little girls."

In the end, the two young women were barred for their leggings, but were reportedly let onto the next flight to Minneapolis after they had changed. Meanwhile, their father was allowed to board their original flight wearing shorts.

In that sense, the United dress code is no different than the dress codes young people have recently been calling out themselves in schools, where far more attention is being paid to what the young women are wearing than the young men.

Since the story broke, United has been in a back and forth with Twitter users who are still upset about this whole ordeal — and these rules — with plenty already planning on wearing yoga pants next time they fly as a sign of solidarity.

The issue is not that there is a dress code for pass holders. It's the rules within that dress code, and who, exactly, is monitored the most.