summaryrefslogtreecommitdiff
path: root/templates/post_form.html
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-02-16 23:07:25 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-02-16 23:07:25 +1100
commit56821eb375096f6cfd2dc56765ed36b51b892d9e (patch)
treedcdcbeeec0b986e387ddd2bdcdb8be7f7b11cbbe /templates/post_form.html
parent3f1c279ce31ed9e70b85c62cf4dc7e58de2ad321 (diff)
allow mods to bypass forced anonymity (and other disabled fields). also fixed some small per-board permission bugs
Diffstat (limited to 'templates/post_form.html')
-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 d4dca20c..1b8a3ce1 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -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>