When your dog is "under control" It isn't necessary for dogs to be leashed at all times.
However, dogs must be kept on a lead in designated pedestrian zones and on land where livestock is present.
Councils have bye-laws to show the areas where leashing is required, such as in public parks.