summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-13 19:39:21 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-13 19:39:21 +1000
commitd57bbaf49619a8533b70e8c0019fd91f63da14ba (patch)
tree8e760255cd277b37f5469578138ce88f17db6dbc /mod.php
parent4fbf878a21baf26c96617c70bdfa1ffa01d19148 (diff)
fix permissions
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 4428f797..2c112d57 100644
--- a/mod.php
+++ b/mod.php
@@ -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))