finish mod routes

This commit is contained in:
2026-04-29 21:20:07 +03:00
parent 4edc4f4650
commit 4bcea261b1
2 changed files with 65 additions and 7 deletions

View File

@@ -15,10 +15,10 @@
</fieldset>
{%- endif -%}
{%- if get_active_user().is_mod() and target_user.id != get_active_user().id -%}
{%- if get_active_user().is_mod() and target_user.id != get_active_user().id and target_user.permission < get_active_user().permission -%}
<fieldset class="plank even no-shadow minimal thread-actions">
<legend>Moderation actions</legend>
<form method="POST">
<form class="thread-actions" method="POST">
{{csrf_input() | safe}}
{%- if target_user.is_guest() -%}
<input class="warn" type="submit" value="Approve user" formaction="{{url_for('mod.make_user_regular', user_id=target_user.id)}}">