Skip to content

Commit

Permalink
Merge b628e4f into 8103c39
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Dec 20, 2018
2 parents 8103c39 + b628e4f commit 99bf0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get(self):

if dataset_version.available_from > datetime.now():
# If it's not available yet, only return if user is admin.
if not (self.current_user and self.current_user.is_admin(version.dataset)):
if not (self.current_user and self.current_user.is_admin(dataset_version.dataset)):
self.send_error(status_code=403)

base_url = "%s://%s" % (self.request.protocol, self.request.host)
Expand Down

0 comments on commit 99bf0c8

Please sign in to comment.