Skip to content

Instantly share code, notes, and snippets.

@tomchristie
Created October 18, 2012 11:11
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 tomchristie/3911076 to your computer and use it in GitHub Desktop.
Save tomchristie/3911076 to your computer and use it in GitHub Desktop.
# Currently in initial()
if not self.has_permission(request):
self.permission_denied(request)
self.check_throttles(request)
# May be this...
if not self.has_permission(request):
if request._authenticated:
self.permission_denied(request)
else:
self.not_authenticated(request)
self.check_throttles(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment