aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/comment_item.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-08 23:12:08 -0700
committerzotlabs <mike@macgirvin.com>2017-08-08 23:12:08 -0700
commit8eb6dafe312746ea85ccdd0544b17241b2f95a9c (patch)
treea6a1330d4570637e9449a415b9baadb4d19fc2a2 /view/tpl/comment_item.tpl
parentca11d7b9a76c41c7cea0dbec1befacb0ff182de2 (diff)
downloadvolse-hubzilla-8eb6dafe312746ea85ccdd0544b17241b2f95a9c.tar.gz
volse-hubzilla-8eb6dafe312746ea85ccdd0544b17241b2f95a9c.tar.bz2
volse-hubzilla-8eb6dafe312746ea85ccdd0544b17241b2f95a9c.zip
only show upload button to those with write_storage permission
Diffstat (limited to 'view/tpl/comment_item.tpl')
-rwxr-xr-xview/tpl/comment_item.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl
index 289356107..cba4cd3c5 100755
--- a/view/tpl/comment_item.tpl
+++ b/view/tpl/comment_item.tpl
@@ -47,9 +47,11 @@
</button>
</div>
<div class="btn-group mr-2">
+ {{if $can_upload}}
<button class="btn btn-outline-secondary btn-sm" title="{{$edatt}}" onclick="insertCommentAttach('{{$comment}}',{{$id}}); return false;">
<i class="fa fa-paperclip comment-icon"></i>
</button>
+ {{/if}}
<button class="btn btn-outline-secondary btn-sm" title="{{$edurl}}" onclick="insertCommentURL('{{$comment}}',{{$id}}); return false;">
<i class="fa fa-link comment-icon"></i>
</button>