summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/post_form.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index e13b049b..d60039ba 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -71,15 +71,15 @@
{% trans %}Flags{% endtrans %}
</th>
<td>
- {% if not id %}<div>
+ {% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}<div>
<label for="sticky">{% trans %}Sticky{% endtrans %}</label>
<input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky" /><br />
</div>{% endif %}
- {% if not id %}<div>
+ {% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}<div>
<label for="lock">{% trans %}Lock{% endtrans %}</label><br />
<input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock" />
</div>{% endif %}
- {% if true %}<div>
+ {% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}<div>
<label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br />
<input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw" />
</div>{% endif %}