From 0a34939fd74302b83e4c48f1bc36a35e11bc3edf Mon Sep 17 00:00:00 2001 From: rica-carv Date: Mon, 21 Nov 2016 18:35:52 +0000 Subject: [PATCH] Update forum_viewforum.php Permisions check should be on post, not thread. With thread, the "create new topic" is displayed in the dropdown, and it shouldn't if user is not allowed to create posts.... --- e107_plugins/forum/forum_viewforum.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index 5d6040100..582d38798 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -281,7 +281,8 @@ if ($pages) } } -if($forum->checkPerm($forumId, 'thread')) //new thread access only. +//-- if($forum->checkPerm($forumId, 'thread')) //new thread access only. +if($forum->checkPerm($forumId, 'post')) //new thread access only. { $forumSCvars['ntUrl']= e107::url('forum','post')."?f=nt&id=". $forumId; /*--