Den som blivit ålagd besöksförbud har ansetts inte ha rätt att få talan mot beslutet prövad sedan besöksförbudet har upphört att gälla.