diff options
Diffstat (limited to 'templates/display_comment.tpl')
| -rw-r--r-- | templates/display_comment.tpl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/display_comment.tpl b/templates/display_comment.tpl index 1ad4bfb..7119372 100644 --- a/templates/display_comment.tpl +++ b/templates/display_comment.tpl @@ -13,9 +13,7 @@ <a href="{$comments_return_url}&post_comment_reply_id={$comment.content_id}&post_comment_request=1#editcomments" rel="nofollow">{biticon ipackage="icons" iname="mail-reply-sender" iexplain="Reply to this comment"}</a> {/if} {/if} - {* we can't use gContent->hasUserPermission() here since gContent is the content the comment belongs to, not the comment itself *} - {*if $comment.is_editable || ($gContent && $gContent->hasUserPermission('p_liberty_edit_comments'))*} - {if $comment.is_editable || ( $gBitUser->hasPermission( 'p_liberty_edit_comments' ) || ( $comment.user_id == $gBitUser->mInfo.user_id && $comment.user_id != $smarty.const.ANONYMOUS_USER_ID ))} + {if $comment.is_editable} <a href="{$comments_return_url}&post_comment_id={$comment.comment_id}&post_comment_request=1#editcomments" rel="nofollow">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit"}</a> {/if} {if $gBitUser->hasPermission('p_liberty_admin_comments')} |
