mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
token: Fix missing FULL_ACCESS check
This commit is contained in:
@@ -308,6 +308,9 @@ class OAuth2Scope:
|
||||
return (self.scopes >= required_scopes)
|
||||
|
||||
def has_any_scope(self, required_scopes):
|
||||
if self.FULL_ACCESS in self.scopes:
|
||||
return True
|
||||
|
||||
return bool(self.scopes & required_scopes)
|
||||
|
||||
def is_valid(self):
|
||||
|
||||
Reference in New Issue
Block a user