The logo for Uber is shown on a vehicle in San Francisco.

Uber drivers can no longer carry guns while on duty, according to a new policy rolled out this month.

The San Francisco–based company said Friday it has banned all firearms in cars providing rides through its app, the Associated Press reported. The new policy, which went into effect June 10, also applies to Uber affiliates and replaces a practice of deferring to local laws.

Uber did not immediately respond to BuzzFeed News' request for comment.

According to the AP, the change in policy came in response to feedback from drivers and passengers.

In April, an Uber driver in Chicago fired a shotgun at a man who was shooting at a crowd of people. The man who had been firing into the crowd survived.

The driver, who had a concealed-carry permit for his gun, was not charged because prosecutors said he was "was acting in self-defense and in the defense of others," according to NBC Chicago.