diff options
author | Frederick Muriuki Muriithi | 2023-04-27 05:36:06 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-04-27 05:36:06 +0300 |
commit | 53b054787bc2adb679fe6cbf46ee9c20fbbc91ff (patch) | |
tree | 603412bf6dbbf90275994edbe53b72915346bbb3 | |
parent | 9556a73c3b0a9419cc20f3beb26ae9260ec64d88 (diff) | |
download | genenetwork3-53b054787bc2adb679fe6cbf46ee9c20fbbc91ff.tar.gz |
oauth2: Provide missing `user_editable` argument.
-rw-r--r-- | gn3/auth/authorisation/users/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/auth/authorisation/users/models.py b/gn3/auth/authorisation/users/models.py index 8cfc1af..89c1d22 100644 --- a/gn3/auth/authorisation/users/models.py +++ b/gn3/auth/authorisation/users/models.py @@ -26,10 +26,10 @@ def __build_resource_roles__(rows): role_id = uuid.UUID(row["role_id"]) priv = Privilege(row["privilege_id"], row["privilege_description"]) role = roles.get(role_id, Role( - role_id, row["role_name"], tuple())) + role_id, row["role_name"], bool(row["user_editable"]), tuple())) return { **roles, - role_id: Role(role_id, role.role_name, role.privileges + (priv,)) + role_id: Role(role_id, role.role_name, role.user_editable, role.privileges + (priv,)) } def __build__(acc, row): resource_id = uuid.UUID(row["resource_id"]) |