Update posts.php

This commit is contained in:
Roman Kelesidis 2024-11-22 00:43:54 +07:00
commit ff98168681

View file

@ -65,6 +65,14 @@ switch ($this->request['type']) {
}
break;
case 'pin':
if ($post['post_id'] != $post['topic_first_post_id'] && (($userdata['user_id'] == $post['poster_id']) || $is_auth['auth_mod'])) {
} else {
// TODO
}
break;
case 'reply':
if (bf($userdata['user_opt'], 'user_opt', 'dis_post')) {
$this->ajax_die($lang['RULES_REPLY_CANNOT']);