summaryrefslogtreecommitdiff
path: root/web-server/opendc/models
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/opendc/models')
-rw-r--r--web-server/opendc/models/topology.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-server/opendc/models/topology.py b/web-server/opendc/models/topology.py
index 1447af98..1c717221 100644
--- a/web-server/opendc/models/topology.py
+++ b/web-server/opendc/models/topology.py
@@ -18,7 +18,7 @@ class Topology(Model):
:param edit_access: True when edit access should be checked, otherwise view access.
"""
user = User.from_google_id(google_id)
- authorizations = list(filter(lambda x: str(x['simulationId']) == str(self.obj['simulationId']),
- user.obj['authorizations']))
+ authorizations = list(
+ filter(lambda x: str(x['simulationId']) == str(self.obj['simulationId']), user.obj['authorizations']))
if len(authorizations) == 0 or (edit_access and authorizations[0]['authorizationLevel'] == 'VIEW'):
raise ClientError(Response(403, "Forbidden from retrieving topology."))