From: Marcel Werk Date: Fri, 23 May 2014 19:03:22 +0000 (+0200) Subject: Added 'canReportContent' permission X-Git-Tag: 2.1.0_Alpha_1~803 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e6de9aebf595de8d1a31007d0373c8866004537d;p=GitHub%2FWoltLab%2FWCF.git Added 'canReportContent' permission --- diff --git a/com.woltlab.wcf/templates/__commentJavaScript.tpl b/com.woltlab.wcf/templates/__commentJavaScript.tpl index 2f00360666..bdc6dc9dd1 100644 --- a/com.woltlab.wcf/templates/__commentJavaScript.tpl +++ b/com.woltlab.wcf/templates/__commentJavaScript.tpl @@ -24,8 +24,10 @@ new WCF.Comment.Response.Like({if $__wcf->getUser()->userID && $__wcf->getSession()->getPermission('user.like.canLike')}1{else}0{/if}, {@LIKE_ENABLE_DISLIKE}, false, {@LIKE_ALLOW_FOR_OWN_CONTENT}); {/if} - new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.comment', '.jsReportCommentComment'); - new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.response', '.jsReportCommentResponse'); + {if $__wcf->session->getPermission('user.profile.canReportContent')} + new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.comment', '.jsReportCommentComment'); + new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.response', '.jsReportCommentResponse'); + {/if} }); //]]> diff --git a/com.woltlab.wcf/templates/commentList.tpl b/com.woltlab.wcf/templates/commentList.tpl index 54e9e6eecf..9238db9371 100644 --- a/com.woltlab.wcf/templates/commentList.tpl +++ b/com.woltlab.wcf/templates/commentList.tpl @@ -27,7 +27,9 @@