Permalink
Browse files

Remove debug logic from OAuth2ResourceController

  • Loading branch information...
1 parent 084f573 commit 0ce026b6c123cec690140fd2bde862ac48a48180 @kemitche kemitche committed Feb 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 r2/r2/controllers/reddit_base.py
@@ -1077,7 +1077,7 @@ def authenticate_with_token(self):
handler = self._get_action_handler()
if handler:
oauth2_perms = getattr(handler, "oauth2_perms", None)
- if oauth2_perms or True:
+ if oauth2_perms:
grant = OAuth2Scope(access_token.scope)
required = set(oauth2_perms['allowed_scopes'])
if not grant.has_access(c.site.name, required):

0 comments on commit 0ce026b

Please sign in to comment.