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> </td>
</tr> </tr>
{% endif %} {% 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> <tr>
<th> <th>
{% trans %}Flags{% endtrans %} {% trans %}Flags{% endtrans %}