summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2009-12-10 21:03:32 +0000
committerwjames5 <will@tekimaki.com>2009-12-10 21:03:32 +0000
commit3b118458e29c6a9be1da0ba4cd8134483ca4f91e (patch)
treecb330704f73347033f8cc66699eab0c344ef9d2f /admin
parent1816205c0ca942ee27e8439cb9f92132b83e68e3 (diff)
downloadboards-3b118458e29c6a9be1da0ba4cd8134483ca4f91e.tar.gz
boards-3b118458e29c6a9be1da0ba4cd8134483ca4f91e.tar.bz2
boards-3b118458e29c6a9be1da0ba4cd8134483ca4f91e.zip
fix refs
Diffstat (limited to 'admin')
-rw-r--r--admin/boardsync_inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/boardsync_inc.php b/admin/boardsync_inc.php
index 15bdb2c..8440df3 100644
--- a/admin/boardsync_inc.php
+++ b/admin/boardsync_inc.php
@@ -83,7 +83,7 @@ function board_sync_run($pLog = FALSE) {
imap_close( $mbox );
// clear everything we've written to the temp directory
$dir = TEMP_PKG_PATH.BOARDS_PKG_NAME.'/boardsync';
- if( is_dir( $dir ) && strpos( $item['path'], BIT_ROOT_PATH ) === 0 ) {
+ if( is_dir( $dir ) && strpos( $dir, BIT_ROOT_PATH ) === 0 ) {
if( !unlink_r( $dir ) ) {
bit_log_error( "Failed to clear directory: ".$dir." in boards package mailinglist synchronization." );
}
@@ -397,7 +397,7 @@ function board_sync_process_message( $pMbox, $pMsgNum, $pMsgHeader, $pMsgStructu
$board->load();
// Check the permission for the user on the board
- if( $gBitSystem->isFeatureActive( 'comments_allow_attachments' ) && $board->hasPermission( 'p_liberty_attach_attachments' ) ){
+ if( $gBitSystem->isFeatureActive( 'comments_allow_attachments' ) && $board->hasUserPermission( 'p_liberty_attach_attachments' ) ){
// note we grant the permission to the anonymous user which will become gBitUser once again
$gBitUserOrg->setPermissionOverride('p_liberty_attach_attachments', true);
};