Police can search a home without a warrant if one of the occupants consents — and even if an occupant who would object isn’t home at the time, the Supreme Court ruled Tuesday, reports nbcnews.com.

The 6-3 vote, which highlights Americans’ Fourth Amendment protections against unreasonable searches and seizures, stems from a 2009 case in Los Angeles.

Walter Fernandez was suspected in an earlier robbery and stabbing, and when police arrived without a warrant at his apartment, he told them they couldn’t come inside. Officers, however, noticed his girlfriend was bruised and bloodied, and so they removed Fernandez on suspicion of domestic abuse.

In the meantime, the girlfriend, who also lived at the apartment, allowed police in. Authorities found a shotgun, ammunition and a knife.