mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Remove debug logic from OAuth2ResourceController
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user