Officer accused of letting friend wear uniform on Halloween