aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-16 21:25:09 -0500
committerubq323 <ubq323@ubq323.website>2025-06-17 12:05:16 +0100
commit0e27f0d095c64a75f52a53860b138da923ad3555 (patch)
tree0b5ae93348bb5a41e6861402cf29a03f88926def
parent4d46e5a8c26f71f501f214e7e98ef5b5905827a9 (diff)
don't show the role list to non-bureaucrats
-rw-r--r--apioforum/templates/role_assignment.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/apioforum/templates/role_assignment.html b/apioforum/templates/role_assignment.html
index 4017897..f5d6e1d 100644
--- a/apioforum/templates/role_assignment.html
+++ b/apioforum/templates/role_assignment.html
@@ -54,9 +54,9 @@
{% if can_change %}<input type="submit" value="confirm" form="role-form">{% endif %}
<a href="{{url_for('forum.view_user_role',forum_id=forum.id)}}">cancel</a>
</p>
-{% else %}
+{% elif role_assignments and is_bureaucrat(forum.id, g.user) %}
<p><a href="{{url_for('forum.view_forum',forum_id=forum.id)}}">back</a></p>
-{% if role_assignments %}<h2>assigned roles</h2>{% endif %}
+<h2>assigned roles</h2>
<table class="role-list">
{% for ass in role_assignments %}
{% set can_change = ass.role == "other" or is_bureaucrat(forum.id, g.user) %}