From: hickert Date: Mon, 14 Jun 2010 07:58:12 +0000 (+0000) Subject: Updated ignoreACL deteection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d9dbdcbab71a37d219851ce4d07024de4b3c66b8;p=gosa.git Updated ignoreACL deteection -It respects ldap properties now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18858 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 4d21c9cb3..e550a47d8 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -37,7 +37,7 @@ class userinfo var $ocMapping= array(); var $groups= array(); var $result_cache =array(); - var $ignoreACL = FALSE; + var $ignoreACL = NULL; var $ACLperPath = array(); var $ACLperPath_usesFilter = array(); @@ -77,8 +77,6 @@ class userinfo $this->uid= $attrs['uid'][0]; $this->ip= $_SERVER['REMOTE_ADDR']; - $this->ignoreACL = ($this->config->get_cfg_value("core","ignoreAcl") == $this->dn); - /* Initialize ACL_CACHE */ $this->reset_acl_cache(); } @@ -764,6 +762,9 @@ class userinfo */ function ignore_acl_for_current_user() { + if($this->ignoreACL === NULL){ + $this->ignoreACL = ($this->config->get_cfg_value("core","ignoreAcl") == $this->dn); + } return($this->ignoreACL); }