diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-13 19:39:21 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-13 19:39:21 +1000 |
| commit | d57bbaf49619a8533b70e8c0019fd91f63da14ba (patch) | |
| tree | 8e760255cd277b37f5469578138ce88f17db6dbc | |
| parent | 4fbf878a21baf26c96617c70bdfa1ffa01d19148 (diff) | |
fix permissions
| -rw-r--r-- | mod.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1481,6 +1481,7 @@ else header('Location: ?/' . sprintf($config['board_path'], $boardName) . $config['file_index'], true, $config['redirect_http']); } elseif(preg_match('/^\/ban$/', $query)) { + if($mod['type'] < $config['mod']['ban']) error($config['error']['noaccess']); // Ban page if(isset($_POST['new_ban'])) { @@ -1590,11 +1591,13 @@ header('Location: ?/', true, $config['redirect_http']); } } elseif(preg_match('/^\/' . $regex['board'] . 'ban(&delete)?\/(\d+)$/', $query, $matches)) { - if($mod['type'] < $config['mod']['delete']) error($config['error']['noaccess']); + if($mod['type'] < $config['mod']['ban']) error($config['error']['noaccess']); // Ban by post $boardName = $matches[1]; $delete = isset($matches[2]) && $matches[2] == '&delete'; + if($delete && $mod['type'] < $config['mod']['delete']) error($config['error']['noaccess']); + $post = $matches[3]; // Open board if(!openBoard($boardName)) |
