A legal challenge to a New York state law that allows the names and addresses of handgun permit holders in New York to be made public will move forward after a federal judge partly denied a motion to dismiss from the state on Monday.

U.S. District Judge Kenneth Karas of the Southern District of New York said in a decision that the lawsuit may continue on the plaintiffs’ claims that the law violates their Second Amendment rights, but their claims about privacy rights were dismissed.