From 567d37c62ee30ed1f94e4e73659c96cea94afcf0 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 3 Jan 2011 01:15:55 +1100 Subject: [PATCH] Permissions on mod controls when making a new thread --- post.php | 3 +++ 1 file changed, 3 insertions(+) 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']) {