The New Jersey Supreme Court on Monday used two cases to clarify when the police can search a premises without a search warrant when at least one tenant consents but another objects.

In a unanimous ruling in State v. Lamb, the court said a warrantless search conducted over the vociferous objection of one tenant does not render the search infirm as to a third party—in this case, a man hiding out after allegedly firing shots at other people—when the objecting tenant leaves the residence.