token: Fix missing FULL_ACCESS check

This commit is contained in:
Kevin O'Connor
2015-08-21 14:38:22 -07:00
parent 03e4a1876f
commit 7d32950cbc

View File

@@ -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):