Police officer will no longer carry out ‘unlawful’ acts.