Created
October 18, 2012 11:11
-
-
Save tomchristie/3911076 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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