diff options
| author | wjames5 <will@tekimaki.com> | 2008-08-01 04:32:02 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-08-01 04:32:02 +0000 |
| commit | e6a1109b10844c7da1ab356e5ab894f99aeaabfa (patch) | |
| tree | 4ecb05d82658ea15e93d73d044fc20d95af80622 /edit_topic.php | |
| parent | 8c293da21dd0df9e816674e5ce5b6d041e724208 (diff) | |
| download | boards-e6a1109b10844c7da1ab356e5ab894f99aeaabfa.tar.gz boards-e6a1109b10844c7da1ab356e5ab894f99aeaabfa.tar.bz2 boards-e6a1109b10844c7da1ab356e5ab894f99aeaabfa.zip | |
change topic delete to require board admin perm instead of edit - more in keeping with old separate remove perm - plus content_id bug fix in edit_topic
Diffstat (limited to 'edit_topic.php')
| -rw-r--r-- | edit_topic.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/edit_topic.php b/edit_topic.php index be760c6..efce82a 100644 --- a/edit_topic.php +++ b/edit_topic.php @@ -18,6 +18,7 @@ $gBitUser->verifyTicket(); // Load up the Topic's board - we'll respect its permissions $board = new BitBoard( $gContent->mInfo['board_id'] ); +$board->load(); $rslt = false; @@ -35,7 +36,7 @@ if( isset($_REQUEST['is_locked']) || isset($_REQUEST['is_sticky']) ){ // Remove a topic }elseif( isset( $_REQUEST['remove'] ) ) { // Check permissions to edit this topic if the root object is the board check its perms, otherwise check general comment admin perms - if( !(( $gContent->mInfo['root_id'] == $gContent->mInfo['board_id'] && $board->hasEditPermission() ) || $gBitUser->hasPermission('p_liberty_admin_comments')) ){ + if( !(( $gContent->mInfo['root_id'] == $gContent->mInfo['board_content_id'] && $board->hasAdminPermission() ) || $gBitUser->hasPermission('p_liberty_admin_comments')) ){ $gBitSystem->fatalError( 'You do not have permission to delete this topic.' ); } |
