Closed Airport departure?

If an airport is closed, but they have you permission to take of, can you legally do so?

Depends who’s looking