Update Controllers and templates for user related permission changes

This commit is contained in:
DariusIII
2018-08-06 15:53:40 +02:00
parent 28a4d16f0a
commit 16c81470ea
9 changed files with 140 additions and 45 deletions
+2 -5
View File
@@ -214,6 +214,7 @@ class BasePageController extends Controller
abort(429, $retry);
}
public function render()
{
$this->smarty->display($this->page_template);
@@ -284,11 +285,7 @@ class BasePageController extends Controller
$this->smarty->assign('recentforumpostslist', Forumpost::getPosts(Settings::settingValue('..showrecentforumposts')));
}
if (! empty($this->userdata)) {
$parentcatlist = Category::getForMenu($this->userdata['categoryexclusions'], $this->userdata['rolecategoryexclusions']);
} else {
$parentcatlist = Category::getForMenu();
}
$parentcatlist = Category::getForMenu();
$this->smarty->assign('parentcatlist', $parentcatlist);
$this->smarty->assign('catClass', Category::class);