summaryrefslogtreecommitdiff
path: root/templates/post_display.tpl
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-03-09 22:04:49 +0000
committerChristian Fowler <spider@viovio.com>2007-03-09 22:04:49 +0000
commitdcd624fd69cc8bfd6e9071cf0a9ae53cd04bd3dc (patch)
treedb52146954ed91ef2a949645123c0763b8c1a0d8 /templates/post_display.tpl
parentb6896f696d417f887e26f1dc97bb343daae39225 (diff)
downloadboards-dcd624fd69cc8bfd6e9071cf0a9ae53cd04bd3dc.tar.gz
boards-dcd624fd69cc8bfd6e9071cf0a9ae53cd04bd3dc.tar.bz2
boards-dcd624fd69cc8bfd6e9071cf0a9ae53cd04bd3dc.zip
check p_liberty_admin_comments insetad of isAdmin for delete powers
Diffstat (limited to 'templates/post_display.tpl')
-rw-r--r--templates/post_display.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/post_display.tpl b/templates/post_display.tpl
index 3261232..b9c72b9 100644
--- a/templates/post_display.tpl
+++ b/templates/post_display.tpl
@@ -30,7 +30,7 @@
{if $comment.editable}
<a href="{$comments_return_url}&amp;post_comment_id={$comment.comment_id}&amp;post_comment_request=1#editcomments" rel="nofollow">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit" iforce="icon"}</a>
{/if}
- {if $gBitUser->isAdmin()}
+ {if $gBitUser->hasPermission( 'p_liberty_admin_comments' )}
<a href="{$comments_return_url}&amp;delete_comment_id={$comment.comment_id}" rel="nofollow">{biticon ipackage="icons" iname="edit-delete" iexplain="Remove" iforce="icon"}</a>
{/if}
{if $gBitUser->hasPermission( 'p_bitboards_edit' ) && (($comment.user_id<0 && $comment.is_approved==0)||$comment.user_id>=0) && !$comment.is_warned}