Remove debug logic from OAuth2ResourceController

This commit is contained in:
Keith Mitchell
2014-02-25 14:20:11 -08:00
parent 084f5736ce
commit 0ce026b6c1

View File

@@ -1077,7 +1077,7 @@ class OAuth2ResourceController(MinimalController):
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):