mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Forum: Fix for forum creation access rights.
This commit is contained in:
@@ -536,6 +536,9 @@ class e107forum
|
|||||||
$this->permList[$key.'_list'] = implode(',', array_keys($tmp));
|
$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::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->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)
|
if(!BOOTSTRAP)
|
||||||
@@ -927,7 +925,9 @@ function fpages($thread_info, $replies)
|
|||||||
function newthreadjump($url)
|
function newthreadjump($url)
|
||||||
{
|
{
|
||||||
global $forum;
|
global $forum;
|
||||||
$jumpList = $forum->forumGetAllowed('view');
|
$jumpList = $forum->forumGetAllowed('view');
|
||||||
|
|
||||||
|
|
||||||
$text = '<div class="btn-group">
|
$text = '<div class="btn-group">
|
||||||
<a href="'.$url.'" class="btn btn-primary">'.LAN_FORUM_1018.'</a>
|
<a href="'.$url.'" class="btn btn-primary">'.LAN_FORUM_1018.'</a>
|
||||||
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||||
|
Reference in New Issue
Block a user