From a5e9a7f9051012b6843194e6faad214dc3fee6dd Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Tue, 5 May 2020 19:14:05 -0500 Subject: [PATCH] Don't allow comment forum thread in expired session - refs BT#17168 --- main/forum/viewthread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/forum/viewthread.php b/main/forum/viewthread.php index a4309d3fac..2874ced04c 100755 --- a/main/forum/viewthread.php +++ b/main/forum/viewthread.php @@ -668,7 +668,7 @@ if (!api_is_allowed_to_edit(false, true) && $showForm = false; } -if (!api_is_allowed_to_edit(false, true) && +if (!api_is_allowed_to_session_edit(false, true) || ( ($current_forum_category && $current_forum_category['locked'] != 0) || $current_forum['locked'] != 0 || $current_thread['locked'] != 0