allura
Revisión | 6aa3f6ead504dfd550469952cc39aaf42daed1a5 (tree) |
---|---|
Tiempo | 2012-07-11 00:56:24 |
Autor | Igor Bondarenko <jetmind2@gmai...> |
Commiter | Igor Bondarenko |
[#4510] Don't show edit form if not allowed to edit.
@@ -36,7 +36,7 @@ | ||
36 | 36 | {% endif %} |
37 | 37 | {% endif %} |
38 | 38 | </div> |
39 | - {% if h.has_access(value.thread, 'post')() %} | |
39 | + {% if h.has_access(value, 'moderate')() %} | |
40 | 40 | <div class="edit_post_form reply" style="display:none"> |
41 | 41 | {{widgets.edit_post.display(value=value, submit_text='Post', action=value.url())}} |
42 | 42 | </div> |