diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-02-17 16:20:58 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-02-17 16:20:58 +1100 |
| commit | 5f2198dc5f5b4b6a2c340f91bc2571fc54f42975 (patch) | |
| tree | 29066078caac6819334a9a5e6aa7e24870c95efa /templates | |
| parent | 44601c12e01e868d540045583112f7dc8825062b (diff) | |
bypass_field_disable bug
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/post_form.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/post_form.html b/templates/post_form.html index 1b8a3ce1..1ac1dfcf 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 or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr> + {% if not config.field_disable_name or (mod and 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 or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr> + {% if not config.field_disable_email or (mod and 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 or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr> + {% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr> <th> {% trans %}Password{% endtrans %} </th> |
