A Nelson drug dealer has been released from jail as a consequence of the police staging a fake prosecution of an undercover officer.
Trevor John Momo Wilson has been freed on bail despite pleading guilty to supplying LSD, cannabis, and party pills.
He pleaded guilty following Operation Explorer, which planted an undercover officer in the Nelson-based Red Devils gang. He was sentenced at the High Court in Nelson in September.
There were 20 other co-accused but Wilson was the only one to plead guilty.
Justice Simon France threw out the prosecutions of the 20 accused in October after it was revealed police had perpetrated a "fraud" on the courts by staging the fake prosecution and forging a search warrant they served on a member of the public.
Wilson had already begun his sentence but appealed his conviction after the other prosecutions were stayed.
"The grounds of his appeal are that a miscarriage of justice will otherwise occur if he is to continue serving a prison sentence while the other co-accused, many of whom are accused of having committed more serious offences, walk free," a judgment released today said.
Wilson's appeal has not been given a date yet but he applied for bail in the mean time.
Justice French said Wilson's appeal had merit and as the hearing date would probably be some way off it was "in the interests of justice that the appellant should be on bail pending the appeal".
Wilson was released on the same bail conditions he had before going to prison.