mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Forum: Fix for forum creation access rights.
This commit is contained in:
parent
36cabf1330
commit
a4583a4f52
@ -536,6 +536,9 @@ class e107forum
|
||||
$this->permList[$key.'_list'] = implode(',', array_keys($tmp));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// print_a($this->permList);
|
||||
}
|
||||
|
||||
|
||||
|
@ -244,13 +244,11 @@ if ($pages)
|
||||
}
|
||||
}
|
||||
|
||||
if($forum->checkPerm($forumId, 'post'))
|
||||
if($forum->checkPerm($forumId, 'thread')) //new thread access only.
|
||||
{
|
||||
|
||||
$ntUrl = e107::url('forum','post')."?f=nt&id=". $forumId;
|
||||
// $ntUrl = e107::getUrl()->create('forum/thread/new', array('id' => $forumId));
|
||||
$fVars->NEWTHREADBUTTON = "<a href='".$ntUrl."'>".IMAGE_newthread.'</a>';
|
||||
$fVars->NEWTHREADBUTTONX = newthreadjump($ntUrl); // "<a class='btn btn-primary' href='".."'>New Thread</a>";
|
||||
$fVars->NEWTHREADBUTTONX = newthreadjump($ntUrl);
|
||||
}
|
||||
|
||||
if(!BOOTSTRAP)
|
||||
@ -927,7 +925,9 @@ function fpages($thread_info, $replies)
|
||||
function newthreadjump($url)
|
||||
{
|
||||
global $forum;
|
||||
$jumpList = $forum->forumGetAllowed('view');
|
||||
$jumpList = $forum->forumGetAllowed('view');
|
||||
|
||||
|
||||
$text = '<div class="btn-group">
|
||||
<a href="'.$url.'" class="btn btn-primary">'.LAN_FORUM_1018.'</a>
|
||||
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
|
Loading…
x
Reference in New Issue
Block a user