Update viewtopic.php

This commit is contained in:
Roman Kelesidis 2024-11-22 00:19:29 +07:00
commit d23ef71b7d

View file

@ -604,6 +604,7 @@ for ($i = 0; $i < $total_posts; $i++) {
if (!$poster_bot) { if (!$poster_bot) {
$quote_btn = ($is_auth['auth_reply'] && !$locked); $quote_btn = ($is_auth['auth_reply'] && !$locked);
$edit_btn = (($userdata['user_id'] == $poster_id && $is_auth['auth_edit']) || $is_auth['auth_mod']); $edit_btn = (($userdata['user_id'] == $poster_id && $is_auth['auth_edit']) || $is_auth['auth_mod']);
$pin_btn = (($userdata['user_id'] == $poster_id) || $is_auth['auth_mod']);
$ip_btn = ($is_auth['auth_mod'] || IS_MOD); $ip_btn = ($is_auth['auth_mod'] || IS_MOD);
} }
$delpost_btn = ($post_id != $t_data['topic_first_post_id'] && ($is_auth['auth_mod'] || ($userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $t_data['topic_last_post_id'] == $post_id && $postrow[$i]['post_time'] + 3600 * 3 > TIMENOW))); $delpost_btn = ($post_id != $t_data['topic_first_post_id'] && ($is_auth['auth_mod'] || ($userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $t_data['topic_last_post_id'] == $post_id && $postrow[$i]['post_time'] + 3600 * 3 > TIMENOW)));