Revert "Update posts.php"

This reverts commit fbcce8618b.
This commit is contained in:
Roman Kelesidis 2023-06-18 13:29:33 +07:00
parent bbf84ada62
commit b53083f8ee

View File

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