Code

Some pliglist iconmenu updates
[gosa.git] / gosa-core / include / class_userinfo.inc
index 65ac65c5860040eda79bb3ec612399280edbc372..1b5fac84eb57e51b426f94f8f004acc4d57790e1 100644 (file)
@@ -175,6 +175,11 @@ class userinfo
             if (preg_replace('/^U:/', '', $grp) == $this->dn){
               $interresting= TRUE;
             }
+
+            /* Wildcard? */
+            if (preg_match('/^G:\*/',  $grp)){
+              $interresting= TRUE;
+            }
           }
         }
 
@@ -243,6 +248,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',""));
@@ -384,7 +397,7 @@ class userinfo
     $acl= array("r" => "", "w" => "", "c" => "", "d" => "", "m" => "", "a" => "");
 
     /* Build dn array */
-    $path= split(',', $dn);
+    $path= explode(',', $dn);
     $path= array_reverse($path);
 
     /* Walk along the path to evaluate the acl */