What does the phrase “I gotta run it by the warden” mean when making plans with someone?

I asked a friend if he wanted to do something and hang out and he said “sure! I just gotta run it by the warden.” Does it basically mean he has to tell his wife? Or is it asking for permission?
3 answers 3