Update posts.php

This commit is contained in:
Roman Kelesidis 2023-06-17 02:28:04 +07:00
parent cafca1e854
commit fbcce8618b

View File

@ -18,7 +18,7 @@ if (isset($this->request['post_id']))
AND f.forum_id = t.forum_id
AND p.post_id = pt.post_id
LIMIT 1");
if(!$post) $this->ajax_die('not post');
if(!$post) $this->ajax_die('not post');
$is_auth = auth(AUTH_ALL, $post['forum_id'], $userdata, $post);
if ($post['topic_status'] == TOPIC_LOCKED && !$is_auth['auth_mod'])