Probably but do you have to assist them. If the cabinet is locked do you have to open it? it is rather rude if they rock up unannounced and order a search.
While this did happen to me in Qld. I did pass and as it was the local policeman I did not have an issue. Be different if it was some unknowns.