1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-18 09:04:44 +01:00

Permissions on mod controls when making a new thread

This commit is contained in:
Savetheinternet 2011-01-03 01:15:55 +11:00
parent d68adefd3b
commit 567d37c62e

View File

@ -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']) {