• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revision6aa3f6ead504dfd550469952cc39aaf42daed1a5 (tree)
Time2012-07-11 00:56:24
AuthorIgor Bondarenko <jetmind2@gmai...>
CommiterIgor Bondarenko

Log Message

[#4510] Don't show edit form if not allowed to edit.

Change Summary

Incremental Difference

--- a/Allura/allura/templates/widgets/post_widget.html
+++ b/Allura/allura/templates/widgets/post_widget.html
@@ -36,7 +36,7 @@
3636 {% endif %}
3737 {% endif %}
3838 </div>
39- {% if h.has_access(value.thread, 'post')() %}
39+ {% if h.has_access(value, 'moderate')() %}
4040 <div class="edit_post_form reply" style="display:none">
4141 {{widgets.edit_post.display(value=value, submit_text='Post', action=value.url())}}
4242 </div>