diff options
| author | Christian Fowler <spider@viovio.com> | 2006-09-06 09:02:47 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-09-06 09:02:47 +0000 |
| commit | 6c6cab7c9246341369f0806b30627b328a719ae4 (patch) | |
| tree | 99f75193e1aff59f94636dedac4a2a5de37d4cd3 /templates | |
| parent | 04e495a0ec259ff11b5b0615bc318ef23b8893b8 (diff) | |
| download | liberty-6c6cab7c9246341369f0806b30627b328a719ae4.tar.gz liberty-6c6cab7c9246341369f0806b30627b328a719ae4.tar.bz2 liberty-6c6cab7c9246341369f0806b30627b328a719ae4.zip | |
initialize return value in case nothing comes back
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/display_comment.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/display_comment.tpl b/templates/display_comment.tpl index b3135ca..51af922 100644 --- a/templates/display_comment.tpl +++ b/templates/display_comment.tpl @@ -9,10 +9,10 @@ {if $gBitUser->hasPermission( 'p_liberty_post_comments' )} <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 $comment.editable} + {if $gBitUser->hasPermission('p_liberty_admin_comments') || ($gBitUser && $comment.user_id == $gBitUser->mInfo.user_id) || $comment.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->isAdmin()} + {if $gBitUser->hasPermission('p_liberty_admin_comments')} <a href="{$comments_return_url}&delete_comment_id={$comment.comment_id}" rel="nofollow">{biticon ipackage="icons" iname="edit-delete" iexplain="Remove"}</a> {/if} </div> |
