The new Massachusetts licensing commission for police officers for now can’t ask cops its planned questions about whether they’ve posted anything “that you believe could be perceived as biased” or if they’ve belonged to any organization that has “unlawfully discriminated” against anyone based on race, gender or other factors, a judge has ruled while allowing the rest of the questionnaire.

Suffolk Superior Court Judge Jackie Cowin issued the preliminary injunction against those two of the eight questions, writing that they will be “stricken from the questionnaire” that many officers are supposed to fill out by this summer under the certification law.

“Officers who have not yet responded to the questionnaire because they were granted extensions to do so need not answer Question Nos. 6 and 7,” Cowin wrote in conclusion in a copy of the Monday decision obtained by the Boston Herald.

She added: “For officers who have already turned in the questionnaire and answered Question Nos. 6 and 7 in their current form, the answers may not be used, directly or indirectly, as a basis for denial of recertification.”

The Peace Officer Standards and Training, or POST, Commission, written into law in 2020, has been seeking to have officers fill out this questionnaire to determine if they have “good moral character” as part of its licensing process.