aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-04-27 05:36:06 +0300
committerFrederick Muriuki Muriithi2023-04-27 05:36:06 +0300
commit53b054787bc2adb679fe6cbf46ee9c20fbbc91ff (patch)
tree603412bf6dbbf90275994edbe53b72915346bbb3
parent9556a73c3b0a9419cc20f3beb26ae9260ec64d88 (diff)
downloadgenenetwork3-53b054787bc2adb679fe6cbf46ee9c20fbbc91ff.tar.gz
oauth2: Provide missing `user_editable` argument.
-rw-r--r--gn3/auth/authorisation/users/models.py4
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"])