The attorney general in Texas issued an opinion Wednesday that says community colleges can ban guns in areas where there are children, but they can’t make blanket gun bans campus-wide.

“A junior or community college may not categorically prohibit concealed handguns from the junior or community college campus,” says Texas Attorney General Ken Paxton in a public opinion.

But the school can establish rules about specific areas of campus. “Such rules could prohibit concealed handguns in specific classrooms and campus areas at times where there may be a congregation of minors … so long as those rules do not operate to ‘generally prohibit or have the effect of generally prohibiting license holders from carrying concealed handguns on the campus of the institution.'”

Paxton wrote the opinion after a Texas lawmaker asked for clarification on the issue. The opinion doesn’t have the force of law, but rather provides guidance for colleges and residents.

In another opinion issued last year, Paxton said people can carry holstered guns in parking lots and sidewalks of elementary and secondary schools as long as there aren’t any school activities going on. Otherwise, it’s illegal to carry a handgun on the grounds of those public schools.

But colleges and universities are different. Texas passed a campus carry law last year that allows licensed gun owners to carry concealed weapons on higher education campuses. Four-year colleges saw that law take effect earlier this year, and it takes effect at two-year schools next August.