A Montreal police officer has been granted bail after being charged with selling drugs.

Philippe Bonenfant, 29, has been on the force for six years, most recently with Station 21.

He was suspended without pay once the accusations were filed on Nov. 11, 2015.

He was charged Thursday afternoon with drug trafficking, counselling someone in relation to drug trafficking, possession of a prohibited weapon (brass knuckles) and having fraudulently used a computer.

The final charge is related to allegations Bonenfant used a computer to access the official Quebec police database, which is strictly reserved for police duties.

On Friday Bonenfant appeared in court and was granted bail.

He had to post a $5,000 bond as part of his release conditions. He must also stay at home in evenings.

Bonenfant is not allowed to possess weapons, narcotics, or a cell phone.

His next court appearance is is February.