aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/oauth2/create-role.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-17 15:46:26 -0500
committerFrederick Muriuki Muriithi2024-06-17 15:46:26 -0500
commit529932949c8631f3c3e64817123d67cd73d90d1e (patch)
treed677e4c473c59aacb70fb7a53b186218ed71bc81 /gn2/wqflask/templates/oauth2/create-role.html
parent2d0261add8df5a0b49e80eb2fab3a98f27871067 (diff)
downloadgenenetwork2-529932949c8631f3c3e64817123d67cd73d90d1e.tar.gz
Fix error display logic
Diffstat (limited to 'gn2/wqflask/templates/oauth2/create-role.html')
-rw-r--r--gn2/wqflask/templates/oauth2/create-role.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn2/wqflask/templates/oauth2/create-role.html b/gn2/wqflask/templates/oauth2/create-role.html
index 198eacdd..6cf0bb78 100644
--- a/gn2/wqflask/templates/oauth2/create-role.html
+++ b/gn2/wqflask/templates/oauth2/create-role.html
@@ -9,8 +9,8 @@
<p>Create a new role to act on resource "{{resource.resource_name}}"</p>
- {%if group_privileges_error is defined%}
- {{display_error("Group Privileges", group_privileges_error)}}
+ {%if resource_role_error is defined%}
+ {{display_error("Resource Role", resource_role_error)}}
{%else%}
{%if "resource:role:create-role" in (user_privileges|map(attribute="privilege_id")) %}
<form method="POST" action="{{url_for('oauth2.resource.create_resource_role',