aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/oauth2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-03-07 16:15:40 +0300
committerFrederick Muriuki Muriithi2024-03-07 16:15:40 +0300
commitb9e04ad79e0039edba25d58f8bc03e4d2a17583b (patch)
treef2001811c30e1981a37b87641d8e1e41af2fea24 /gn2/wqflask/oauth2
parentec480af2769fd17acac95dc4473ca4128a46279b (diff)
downloadgenenetwork2-b9e04ad79e0039edba25d58f8bc03e4d2a17583b.tar.gz
fix bugs.
Diffstat (limited to 'gn2/wqflask/oauth2')
-rw-r--r--gn2/wqflask/oauth2/groups.py2
-rw-r--r--gn2/wqflask/oauth2/resources.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gn2/wqflask/oauth2/groups.py b/gn2/wqflask/oauth2/groups.py
index fd5ab7eb..3223b932 100644
--- a/gn2/wqflask/oauth2/groups.py
+++ b/gn2/wqflask/oauth2/groups.py
@@ -141,7 +141,7 @@ def reject_join_request():
@require_oauth2
def group_role(group_role_id: uuid.UUID):
"""View the details of a particular role."""
- def __render_error(**kwargs):
+ def __render_error__(**kwargs):
return render_ui("oauth2/view-group-role.html", **kwargs)
def __gprivs_success__(role, group_privileges):
diff --git a/gn2/wqflask/oauth2/resources.py b/gn2/wqflask/oauth2/resources.py
index 7d20b859..b8ca21fb 100644
--- a/gn2/wqflask/oauth2/resources.py
+++ b/gn2/wqflask/oauth2/resources.py
@@ -82,7 +82,7 @@ def view_resource(resource_id: uuid.UUID):
"oauth2/view-resource.html", resource=resource,
unlinked_data=unlinked_data, users_n_roles=users_n_roles,
this_user=this_user, group_roles=group_roles,
- users_error=process_error(err)),
+ users_error=process_error(err), count_per_page=count_per_page),
lambda users: __users_success__(
resource, unlinked_data, users_n_roles, this_user, group_roles,
users))