mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 10:50:25 +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:
@@ -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;
|
$forumSCvars['ntUrl']= e107::url('forum','post')."?f=nt&id=". $forumId;
|
||||||
/*--
|
/*--
|
||||||
|
Reference in New Issue
Block a user