I believe if an official says you can, an it turns out that you can't, it's called "a mistake of fact", and it can be used as a defence in a court of law.

. . .just sayin'