Police are investigating the accidental discharge of a weapon after two people were injured at the University of Colorado Anschutz Medical Campus on Friday.

The gun went off in the office of a staff member of the School of Dental Medicine, said CU spokesman Dan Meyers.

Meyers said the gun belonged to a staff member who has a concealed- carry permit. The staffer and another person in the office were injured. Neither person was hospitalized.

The staff member is on administrative leave, Meyers said.

It was not clear if the other person in the office was a student or another staff member.

While this is the first injury at the school resulting from a concealed-carry weapon incident, the college has dealt with the matter previously.

In March, the Colorado Supreme Court upheld an appeals-court ruling that struck down CU’s gun ban. The court said the Board of Regents overstepped its authority by refusing to allow permitted concealed weapons on campuses, in leased buildings and in any area under the control of university police.

In August, the University of Colorado at Boulder and the University of Colorado at Colorado Springs amended student-housing contracts, segregating students who possess a valid concealed-carry permit.

University officials said both campuses will establish a residential area for students over the age of 21 with a permit. In all other dormitories, guns will be banned under the new policy.

Those with a permit may still live in dorms on both campuses but may not have weapons in possession while in those general living quarters, officials said.

James Manley, a lawyer for the Mountain States Legal Foundation, a nonprofit dedicated to individual liberty and free enterprise, said the organization would examine the policy change.

CU Chancellor Phil DiStefano told faculty they have no right to cancel class if a student is lawfully carrying a gun.

The warning came shortly after professor Jerry Peterson said he would cancel class if he learned any of his students was carrying a firearm.

Ryan Parker: 303-954-2409, rparker@denverpost.com or twitter.com/ryanparkerdp