Code

Updated ignoreACL deteection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Jun 2010 07:58:12 +0000 (07:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Jun 2010 07:58:12 +0000 (07:58 +0000)
-It respects ldap properties now

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18858 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index 4d21c9cb3737f100ec1e1d0e9da36555fb50a9e8..e550a47d83aa1d08a2be8a835eae9ca96b51c398 100644 (file)
@@ -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);
   }