Fix new thread private behaviour

This commit is contained in:
rubenwardy
2022-04-23 21:44:27 +01:00
parent 34d66a3d96
commit 958020b19b
2 changed files with 15 additions and 7 deletions

View File

@@ -35,10 +35,18 @@
</div>
</div>
{{ render_checkbox_field(form.private, class_="my-3") }}
<p>
{{ _("Only you, the package author, and users of Approver rank and above can read private threads.") }}
</p>
{% if allow_private_change %}
{{ render_checkbox_field(form.private, class_="my-3") }}
{% elif form.private.data %}
<p>
Private.
</p>
{% endif %}
{% if allow_private_change or form.private.data %}
<p>
{{ _("Only you, the package author, and users of Approver rank and above can read private threads.") }}
</p>
{% endif %}
{{ render_submit_field(form.submit) }}
</form>