summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-30 23:36:46 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-30 23:36:46 -0400
commit889945f50cd0c2cd1b8f39d7b380133196a93a74 (patch)
treed62685d9808d1dc01cb9e0013d85d2e5317d1a24 /templates
parent343397d561183a72ed3a6351175b0d34ebe9ffc3 (diff)
Hide "flags" section in posting form if user doesn't have permission to do anything special
Diffstat (limited to 'templates')
-rw-r--r--templates/post_form.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index aa051f5f..a112e2ab 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -85,7 +85,7 @@
</td>
</tr>
{% endif %}
- {% if mod %}
+ {% if mod and ((not id and post.mod|hasPermission(config.mod.sticky, board.uri)) or (not id and post.mod|hasPermission(config.mod.lock, board.uri)) or post.mod|hasPermission(config.mod.rawhtml, board.uri)) %}
<tr>
<th>
{% trans %}Flags{% endtrans %}