Reduced amount of LDAP Requests when Loading CIS Menu

This commit is contained in:
Andreas Österreicher
2021-07-05 18:13:37 +02:00
parent b1ce67ebd5
commit 25124e0354
+3 -1
View File
@@ -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