Code

Reset ACL cache if acls has changed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Sep 2007 11:19:27 +0000 (11:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Sep 2007 11:19:27 +0000 (11:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7424 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_userinfo.inc

index 9b68abc5421fd6b61015946b61cf904162f6cd18..2c46e9efcd63f72ca88a5fe53b5824f4845b36e5 100644 (file)
@@ -67,14 +67,22 @@ class userinfo
 
     /* Initialize ACL_CACHE */
     $_SESSION['ACL_CACHE']= array();
+    $this->reset_acl_cache();
   }
 
 
+  public function reset_acl_cache()
+  {
+    /* Initialize ACL_CACHE */
+    $_SESSION['ACL_CACHE']= array();
+  }
+
   function loadACL()
   {
     $this->ACL= array();    
     $this->groups= array();    
     $this->result_cache =array();
+    $this->reset_acl_cache();
     $ldap= $this->config->get_ldap_link();
     $ldap->cd($this->config->current['BASE']);