When is planning permission not planning permission?