summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-04-25 20:00:54 +0000
committerwjames5 <will@tekimaki.com>2008-04-25 20:00:54 +0000
commite02b740abdf13b7015b9b8cb88b1fa74ed29883d (patch)
tree9bdbddf9daffa5f17e34b1ea7245bde238aa7f23 /templates
parentf090d0381a3c9bb53c717d71a1f9fc19a0915149 (diff)
downloadboards-e02b740abdf13b7015b9b8cb88b1fa74ed29883d.tar.gz
boards-e02b740abdf13b7015b9b8cb88b1fa74ed29883d.tar.bz2
boards-e02b740abdf13b7015b9b8cb88b1fa74ed29883d.zip
update perm check calls to hasUserPerm and the like
Diffstat (limited to 'templates')
-rw-r--r--templates/list_topics.tpl6
-rw-r--r--templates/post_display.tpl4
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/list_topics.tpl b/templates/list_topics.tpl
index 2738c15..61bd5e7 100644
--- a/templates/list_topics.tpl
+++ b/templates/list_topics.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.19 2008/04/21 20:08:21 wjames5 Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.20 2008/04/25 20:00:54 wjames5 Exp $ *}
{strip}
<div class="listing boards">
<div class="floaticon">
@@ -6,10 +6,10 @@
{if $board->getPreference('boards_mailing_list') || $board->hasAdminPermission()}
<a class="item" href="{$smarty.const.BOARDS_PKG_URL}mailing_list.php?b={$board->mInfo.board_id}" title="{tr}Message Board Mailing List{/tr}">{biticon ipackage="icons" iname="internet-mail" iexplain="Edit Message Board"}</a>
{/if}
- {if $gBitUser->hasPermission( 'p_boards_edit' )}
+ {if $board->hasEditPermission()}
<a title="{tr}Edit message board{/tr}" href="{$smarty.const.BOARDS_PKG_URL}edit.php?b={$board->mInfo.board_id}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Message Board"}</a>
{/if}
- {if $gBitUser->hasPermission( 'p_boards_remove' )}
+ {if $board->hasUserPermission( 'p_boards_remove', TRUE, TRUE )}
<a title="{tr}Remove message board{/tr}" href="{$smarty.const.BOARDS_PKG_URL}board.php?remove=1&amp;b={$board->mInfo.board_id}">{biticon ipackage="icons" iname="edit-delete" iexplain="Remove Message Board"}</a>
{/if}
{/if}<!-- end print_page -->
diff --git a/templates/post_display.tpl b/templates/post_display.tpl
index 74bdb1a..565dbf6 100644
--- a/templates/post_display.tpl
+++ b/templates/post_display.tpl
@@ -31,10 +31,10 @@
{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->hasPermission( 'p_liberty_admin_comments' )}
+ {if $board->hasUserPermission( '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_boards_edit' ) && (($comment.user_id<0 && $comment.is_approved==0)||$comment.user_id>=0) && !$comment.is_warned}
+ {if $board->hasUserPermission( 'p_boards_edit' ) && (($comment.user_id<0 && $comment.is_approved==0)||$comment.user_id>=0) && !$comment.is_warned}
{if $comment.user_id<0 && $comment.is_approved==0}
<a title="{tr}Approve this post{/tr}" href="{$smarty.const.BOARDS_PKG_URL}post.php?t={$thread->mRootId}&amp;action=1&amp;comment_id={$comment.comment_id}">
{biticon ipackage="icons" iname="list-add" iexplain="Approve Post" iforce="icon"}