Skip to content

Instantly share code, notes, and snippets.

@jeiting
Created August 5, 2010 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeiting/510444 to your computer and use it in GitHub Desktop.
Save jeiting/510444 to your computer and use it in GitHub Desktop.
if key in authed_keys and not session.data['is_admin']:
# FAIL
conn.rollback()
request.setResponseCode(403,"Forbidden bro!")
return "Forbidden bro!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment