1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 19:00:26 +02:00

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....
This commit is contained in:
rica-carv
2016-11-21 18:35:52 +00:00
committed by GitHub
parent 134ef515c8
commit 0a34939fd7

View File

@@ -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;
/*--