diff --git a/permissions/plugins.py b/permissions/plugins.py index 8ba3c80c..3ef6ae87 100644 --- a/permissions/plugins.py +++ b/permissions/plugins.py @@ -36,7 +36,7 @@ class DummyPermissions(Permissions): def __init__(self, *args, **kwargs): # Dummy permission database - with open("/beacon/permissions/permissions.yml", 'r') as stream: + with open("/beacon/permissions/registered_datasets.yml", 'r') as stream: out = yaml.safe_load(stream) self.db = out @@ -75,10 +75,10 @@ async def get(self, username, requested_datasets=None): datasets.append(rdataset) datasets = set(datasets) except Exception: - with open("/beacon/permissions/permissions.yml", 'r') as stream: + with open("/beacon/permissions/registered_datasets.yml", 'r') as stream: permissions_dict = yaml.safe_load(stream) permissions_dict[username]=[] - with open("/beacon/permissions/permissions.yml", 'w') as file: + with open("/beacon/permissions/registered_datasets.yml", 'w') as file: yaml.dump(permissions_dict, file) self.db = permissions_dict datasets = set(self.db.get(username))