From d23ef71b7d32b83a17f7a4ae5f06a4278ac3d16d Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Fri, 22 Nov 2024 00:19:29 +0700 Subject: [PATCH] Update viewtopic.php --- viewtopic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/viewtopic.php b/viewtopic.php index 9aa4bf3cf..7e8de66e5 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -604,6 +604,7 @@ for ($i = 0; $i < $total_posts; $i++) { if (!$poster_bot) { $quote_btn = ($is_auth['auth_reply'] && !$locked); $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); } $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)));