From 263c7bed07ab0c8bda5198317611099205309b16 Mon Sep 17 00:00:00 2001 From: anyeor Date: Fri, 26 Jul 2024 18:19:29 +0200 Subject: [PATCH] fix: require login before create new thread (#261) We have to login first to see new thread button. --- system/pages/forum/show_board.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/pages/forum/show_board.php b/system/pages/forum/show_board.php index f7d79c9e..e0e06583 100644 --- a/system/pages/forum/show_board.php +++ b/system/pages/forum/show_board.php @@ -35,7 +35,7 @@ for($i = 0; $i < $threads_count['threads_count'] / $config['forum_threads_per_pa $links_to_pages .= ''.($i + 1).' '; } echo 'Boards >> '.$sections[$section_id]['name'].''; -if(!$sections[$section_id]['closed'] || Forum::isModerator()) +if($logged && (!$sections[$section_id]['closed'] || Forum::isModerator())) { echo '

'; @@ -87,7 +87,7 @@ if(isset($last_threads[0])) echo ''; } echo ''; - if(!$sections[$section_id]['closed'] || Forum::isModerator()) + if($logged && (!$sections[$section_id]['closed'] || Forum::isModerator())) echo '
'; } else