about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzsloan2021-10-22 18:52:39 +0000
committerzsloan2021-10-22 18:53:24 +0000
commite8b6b4e99f7a4ea649dab0c5a7bf7695531e97d2 (patch)
treed5367e6cba54cbf5ef257328f0b86de17244697a
parentb8f2df1f08c423923aeb72a1b2c2316e6da232dc (diff)
downloadgenenetwork2-e8b6b4e99f7a4ea649dab0c5a7bf7695531e97d2.tar.gz
Include the admin privilege for the 'editors' group, since it wasn't being set before (which caused some problems)
-rw-r--r--scripts/authentication/resource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/authentication/resource.py b/scripts/authentication/resource.py
index 4996f34c..1a2bcd8a 100644
--- a/scripts/authentication/resource.py
+++ b/scripts/authentication/resource.py
@@ -97,7 +97,8 @@ if __name__ == "__main__":
     for resource_id, resource in RESOURCES.items():
         _resource = json.loads(resource)  # str -> dict conversion
         _resource["group_masks"] = {args.group_id: {"metadata": "edit",
-                                                    "data": "edit"}}
+                                                    "data": "edit",
+                                                    "admin": "edit-admins"}}
         REDIS_CONN.hset("resources",
                         resource_id,
                         json.dumps(_resource))