A federal judge ruled that Philadelphia’s police department did not violate the civil rights of a Muslim officer when it forbade her from wearing a head scarf on the job.

Kimberlie Webb, 44, who has been on the force more than 10 years, filed a discrimination lawsuit in October 2005 after the department said she could not wear a khimar at work because the religious symbol violated uniform regulations.