summaryrefslogtreecommitdiff
path: root/opendc/models/authorization.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/models/authorization.py')
-rw-r--r--opendc/models/authorization.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/opendc/models/authorization.py b/opendc/models/authorization.py
index 4c714e6d..7ec88e78 100644
--- a/opendc/models/authorization.py
+++ b/opendc/models/authorization.py
@@ -18,12 +18,7 @@ class Authorization(Model):
def google_id_has_at_least(self, google_id, authorization_level):
"""Return True if the User has at least the given auth level over this Authorization."""
- authorization = Authorization.from_primary_key(
- (
- User.from_google_id(google_id).id,
- self.simulation_id
- )
- )
+ authorization = Authorization.from_primary_key((User.from_google_id(google_id).id, self.simulation_id))
if authorization is None:
return False