Tanzania's ex-presidential candidate allowed to travel