From 53b054787bc2adb679fe6cbf46ee9c20fbbc91ff Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 27 Apr 2023 05:36:06 +0300 Subject: oauth2: Provide missing `user_editable` argument. --- gn3/auth/authorisation/users/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gn3') 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"]) -- cgit v1.2.3