diff options
-rw-r--r-- | gn_auth/auth/authorisation/resources/groups/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/models.py b/gn_auth/auth/authorisation/resources/groups/models.py index f5f0195..18210e3 100644 --- a/gn_auth/auth/authorisation/resources/groups/models.py +++ b/gn_auth/auth/authorisation/resources/groups/models.py @@ -330,7 +330,7 @@ def resource_from_group(conn: db.DbConnection, the_group: Group) -> Resource: "ON resources.resource_category_id=resource_categories.resource_category_id " "WHERE group_resources.group_id=?", (str(the_group.group_id),)) - results = db_rows_to_roles(cursor.fetchall()) + results = tuple(resource_from_dbrow(row) for row in cursor.fetchall()) assert len(results) == 1, "Expected a single group resource." return results[0] |