summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index 744755c6..5695ad8b 100644
--- a/mod.php
+++ b/mod.php
@@ -65,6 +65,8 @@
)
);
} elseif(preg_match('/^\/new$/', $query)) {
+ if($mod['type'] != MOD_ADMIN) error(ERROR_NOACCESS);
+
// New board
$body = '';