BOSTON — Massachusetts' highest court says the state's Department of Correction overstepped its authority when it began using dogs to search prison visitors for drugs without giving the public a chance to weigh in.The Supreme Judicial Court ruled Thursday that the department should have followed a regulatory process that allows interested parties an opportunity to present their views.The drug-dog policy has been in place since 2013.