summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-03 01:15:55 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-03 01:15:55 +1100
commit567d37c62ee30ed1f94e4e73659c96cea94afcf0 (patch)
treed33b6da42eb527ea3b50d7331a5967d6743622c2
parentd68adefd3bdabdebc02f66a814cafaad5ffbee54 (diff)
Permissions on mod controls when making a new thread
-rw-r--r--post.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/post.php b/post.php
index 169a55e1..cdc51ffd 100644
--- a/post.php
+++ b/post.php
@@ -94,6 +94,9 @@
$post['sticky'] = $OP && isset($_POST['sticky']);
$post['locked'] = $OP && isset($_POST['lock']);
+
+ if($post['sticky'] && $mod['type'] < MOD_STICKY) error(ERROR_NOACCESS);
+ if($post['locked'] && $mod['type'] < MOD_LOCK) error(ERROR_NOACCESS);
}
if($post['has_file']) {