summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-10 20:38:49 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-10 20:38:49 +1100
commit88c4ef787e2ca0a954cfe41f60cb58eee461412b (patch)
treeb70ab1c7aec59cb6ff53b918f95bc62498c75634 /mod.php
parent6d2813857efa308ed295048f047ea45b698ac093 (diff)
Simple permission handling
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 = '';