allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [06/18] allura git commit: [#8088] Added check to see if user has permission to reply
Date Wed, 13 Jul 2016 19:30:03 GMT
[#8088] Added check to see if user has permission to reply


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/ed07eed6
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/ed07eed6
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/ed07eed6

Branch: refs/heads/master
Commit: ed07eed6b21421352472228d7470293efb53e0fb
Parents: 68aa802
Author: Rohan Verma <rohanverma2004@gmail.com>
Authored: Thu Jun 9 23:53:54 2016 +0530
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Jul 13 15:03:29 2016 -0400

----------------------------------------------------------------------
 Allura/allura/templates/widgets/post_widget.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/ed07eed6/Allura/allura/templates/widgets/post_widget.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/post_widget.html b/Allura/allura/templates/widgets/post_widget.html
index 3a4ea9e..bec9ecd 100644
--- a/Allura/allura/templates/widgets/post_widget.html
+++ b/Allura/allura/templates/widgets/post_widget.html
@@ -57,8 +57,9 @@
             {{lib.user_link(value.author())}} - <i style="color: #777">{{lib.abbr_date(value.timestamp)}}</i>
 
             <div class="tools">
-            <a class="icon reply_post btn" href="#" style="" title="Reply" role="button"><span
class="ui-button-text"><i class="fa fa-reply"></i></span></a>
-
+            {% if h.has_access(value.thread, 'post')() %}
+                <a class="icon reply_post btn" href="#" style="" title="Reply" role="button"><span
class="ui-button-text"><i class="fa fa-reply"></i></span></a>
+            {% endif %}
             <a href="{{shortlink_url}}" class="icon btn ui-button ui-widget ui-state-default
ui-corner-all ui-button-text-only"{%if value.status == 'pending'%} style="display:none"{%endif%}>
               <span><i class="fa fa-link" aria-hidden="true"></i></span></a>
 


Mime
View raw message