A permit was a document that granted someone permission to do something.
In 2285, cautioning Leonard McCoy that the Mutara sector was restricted, his contact told him it would require many permits and even more money. A desperate McCoy shouted back, "There aren't going to be any damn permits! How can you get a permit to do a damn illegal thing?" (Star Trek III: The Search for Spock)