Browse Source

Board moderators should not have access to boards they are moderator of if their access is denied

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
6f400f34df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Load.php

+ 1 - 1
Sources/Load.php

@@ -702,7 +702,7 @@ function loadBoard()
 	$context['current_board'] = $board;
 
 	// Hacker... you can't see this topic, I'll tell you that. (but moderators can!)
-	if (!empty($board_info['error']) && ($board_info['error'] != 'access' || !$user_info['is_mod']))
+	if (!empty($board_info['error']) && (!empty($modSettings['deny_boards_access']) || $board_info['error'] != 'access' || !$user_info['is_mod']))
 	{
 		// The permissions and theme need loading, just to make sure everything goes smoothly.
 		loadPermissions();