mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Reduced amount of LDAP Requests when Loading CIS Menu
This commit is contained in:
+3
-1
@@ -30,6 +30,7 @@ $params = array();
|
||||
foreach($_REQUEST as $key=>$value)
|
||||
$params[$key]=$value;
|
||||
|
||||
$user = null;
|
||||
//Parameter fuer Include Addons
|
||||
$includeparams = array();
|
||||
$contentobjects=array();
|
||||
@@ -101,11 +102,12 @@ function drawSubmenu1($content_id)
|
||||
*/
|
||||
function drawEntry($item)
|
||||
{
|
||||
global $childsobject;
|
||||
global $childsobject, $user;
|
||||
|
||||
//pruefen ob der Content eine Berechtigung erfordert
|
||||
if($item->locked)
|
||||
{
|
||||
if(is_null($user))
|
||||
$user = get_uid();
|
||||
$content = new content();
|
||||
//wenn der User nicht berechtigt ist, dann wird der Eintrag nicht angezeigt
|
||||
|
||||
Reference in New Issue
Block a user