Sharing and trading lunches at school is a rite of passage for many kids, but this week an eighth-grade boy in California was sent to detention for sharing his lunch with a classmate.

According to USA Today, 13-year-old Kyle Bradford had purchased a chicken burrito from the school cafeteria. His friend had a cheese sandwich from the same cafeteria but didn’t like it, so Bradford offered to share the burrito. He said the burrito was too big for him to eat by himself anyway, and he was happy to share the extra instead of throwing it out. But the school has a rule against students sharing food out of fear of liability from allergies and hygiene, so Bradford got detention for the day.

Want to learn more? Check out The Daily Meal's 11 Things Parents Need to Know About School Lunch Programs (Slideshow)

"Of course if students are concerned about other students not having enough to eat we would definitely want to consider that," the school superintendent said, "but because of safety and liability we cannot allow students to actually exchange meals."

Bradford served his detention, but said he would share his lunch again.