diff --git a/backend/application.py b/backend/application.py index 49c0f90ce..0f6f4f7d5 100644 --- a/backend/application.py +++ b/backend/application.py @@ -164,10 +164,6 @@ def get(self, dataset, version=None): version = db.get_dataset_version(dataset, version) if version.available_from > datetime.now(): - # If it's not available yet, only return if user is admin. - if not (user and user.is_admin(version.dataset)): - self.send_error(status_code=403) - return future_version = True ret = build_dataset_structure(version, user) diff --git a/backend/beacon.py b/backend/beacon.py index a8d89f073..50705a5ef 100644 --- a/backend/beacon.py +++ b/backend/beacon.py @@ -7,8 +7,10 @@ class Query(handlers.UnsafeHandler): def make_error_response(self): ret_str = "" + datasets = ['SweGen', 'ACpop'] + checks = { - 'dataset': lambda x: "" if x == 'SweGen' else "dataset has to be SweGen\n", + 'dataset': lambda x: "" if x in datasets else "dataset has to be one of {}\n".format(", ".join(datasets)), 'ref': lambda x: "" if x == 'hg19' else "ref has to be hg19\n", 'pos': lambda x: "" if x.isdigit() else "pos has to be digit\n", } @@ -80,6 +82,10 @@ def get(self): # 'data_uses': [] # Data use limitations 'reference': 'hg19' }, + { + 'id': 'ACpop', + 'reference': 'hg19' + }, ], 'homepage': "%s://%s" % ('https', self.request.host), #'email': u'swefreq-beacon@nbis.se', diff --git a/frontend/assets/img/nbislogo-green.png b/frontend/assets/img/nbislogo-green.png index bdc9cd5f8..261feb5a1 100644 Binary files a/frontend/assets/img/nbislogo-green.png and b/frontend/assets/img/nbislogo-green.png differ