Code

Updated filter files to use.
[gosa.git] / gosa-core / include / class_userinfo.inc
index 01315479d61e08eafce76df79a733e5cc2550c18..06a9648d1782d875d72483966014d5fc683af4be 100644 (file)
@@ -59,8 +59,8 @@ class userinfo
     }
 
     /* Restrictions? */
-    if (isset($attrs['gosaLoginRestrictions'])){
-      $this->restrictions= $attrs['gosaLoginRestrictions'];
+    if (isset($attrs['gosaLoginRestriction'])){
+      $this->restrictions= $attrs['gosaLoginRestriction'];
       unset($this->restrictions['count']);
     }
 
@@ -158,9 +158,9 @@ class userinfo
       foreach($aclc[$dn] as $idx => $type){
         $interresting= FALSE;
         
-        /* No members? This is good for all users... */
+        /* No members? This ACL rule is deactivated ... */
         if (!count($type['members'])){
-          $interresting= TRUE;
+          $interresting= FALSE; 
         } else {
 
           /* Inspect members... */
@@ -243,6 +243,14 @@ class userinfo
   }
 
 
+  /* Returns an array containing all target objects we've permssions on.
+   */
+  function get_acl_target_objects()
+  {
+    return(array_keys($this->ACLperPath));
+  }
+  
+
   function get_category_permissions($dn, $category, $any_acl = FALSE)
   {
     return(@$this->get_permissions($dn,$category.'/0',""));