1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

Hide "flags" section in posting form if user doesn't have permission to do anything special

This commit is contained in:
Michael Foster 2013-07-30 23:36:46 -04:00
parent 343397d561
commit 889945f50c

View File

@ -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 %}