diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:15:55 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:15:55 +1100 |
| commit | 567d37c62ee30ed1f94e4e73659c96cea94afcf0 (patch) | |
| tree | d33b6da42eb527ea3b50d7331a5967d6743622c2 | |
| parent | d68adefd3bdabdebc02f66a814cafaad5ffbee54 (diff) | |
Permissions on mod controls when making a new thread
| -rw-r--r-- | post.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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']) { |
