allow mods to bypass forced anonymity (and other disabled fields). also fixed some small per-board permission bugs

This commit is contained in:
Michael Save 2012-02-16 23:07:25 +11:00
parent 3f1c279ce3
commit 56821eb375
3 changed files with 43 additions and 40 deletions

View file

@ -4,7 +4,7 @@
<input type="hidden" name="board" value="{{ board.uri }}" />
{% if mod %}<input type="hidden" name="mod" value="1" />{% endif %}
<table>
{% if not config.field_disable_name %}<tr>
{% if not config.field_disable_name or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr>
<th>
{% trans %}Name{% endtrans %}
</th>
@ -12,7 +12,7 @@
<input type="text" name="name" size="25" maxlength="50" autocomplete="off" />
</td>
</tr>{% endif %}
{% if not config.field_disable_email %}<tr>
{% if not config.field_disable_email or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr>
<th>
{% trans %}Email{% endtrans %}
</th>
@ -86,7 +86,7 @@
</td>
</tr>
{% endif %}
{% if not config.field_disable_password %}<tr>
{% if not config.field_disable_password or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr>
<th>
{% trans %}Password{% endtrans %}
</th>