summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 21:28:59 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 21:28:59 +1100
commiteca3ac079dacb78cce27b3f0c8f8ca6694ec8210 (patch)
tree926d1e535ef9fb29f0dff21c764c6e14a4362828
parenta83d584255012ee072486c187720ec5849efe1a3 (diff)
Only show posting flags relevant to your mod status
-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 %}