Code

Merge revision 12939 from trunk:
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Feb 2009 08:45:48 +0000 (08:45 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Feb 2009 08:45:48 +0000 (08:45 +0000)
Do not check for dummy entries like ('cn=dummy,ou..'), this doesn't work
with user filter settings.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13431 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/class_divListDepartment.inc
gosa-core/plugins/admin/users/class_userManagement.inc
gosa-core/plugins/personal/generic/class_user.inc
gosa-plugins/goto/admin/devices/class_divListDevices.inc

index 5104c9ee487ad6cb7a32ea803340d18e732d49d1..49732cc95495895bb4b41cafccfb0a89e6227d16 100644 (file)
@@ -153,7 +153,7 @@ class divListDepartment extends MultiSelectWindow
      */
     $types = $this->parent->get_support_departments();
     foreach($types as $type){
-      if(preg_match("/c/",$ui->get_permissions("ou=dummy,".$this->selectedBase  ,"department/".$type['ACL']))){
+      if(preg_match("/c/",$ui->get_permissions($this->selectedBase  ,"department/".$type['ACL']))){
       $s.= "...|<input class='center' type='image' src='".$type['IMG']."' alt='".$type['ATTR']."'>".
         "&nbsp;".$type['TITLE']."&nbsp;(".$type['ATTR'].")|dep_new_".$type['ATTR']."|\n";
       }
index bd26203f9d195d6b7c7dc88eace62a36484640f3..a115f3691fb65c8321bc628939ca838c0de29423 100644 (file)
@@ -473,7 +473,7 @@ class userManagement extends plugin
       foreach ($this->config->departments as $key => $value){
     
         /* Get acls from different ou's */
-        $acl = $this->ui->get_permissions("cn=dummy,".get_people_ou().$value,"users/user")       ; 
+        $acl = $this->ui->get_permissions($value,"users/user")       ; 
  
         /* If creation of a new user is allowed, append this template */
         if (preg_match("/c/",$acl)){
@@ -808,7 +808,7 @@ class userManagement extends plugin
       /* Create new usertab object */
       $this->usertab= new usertabs($this->config,$this->config->data['TABS']['USERTABS'], $this->dn);
       $this->usertab->by_object['user']->base= $this->DivListUsers->selectedBase;
-      $this->usertab->set_acl_base('dummy,'.$this->DivListUsers->selectedBase);
+      $this->usertab->set_acl_base($this->DivListUsers->selectedBase);
 
       /* Take care about templates */
       if ($s_action=="new_tpl"){
index 577744197c17e8c6726189b5de06c04c256b45e8..b2678308997989d7b09b2875eaeaa7ccddc36a37 100644 (file)
@@ -1445,7 +1445,7 @@ class user extends plugin
   function saveCopyDialog()
   {
     /* Set_acl_base */
-    $this->set_acl_base("cn=dummy,".get_people_ou().$this->base);
+    $this->set_acl_base($this->base);
 
     if((isset($_FILES['picture_file']['tmp_name'])) && ($_FILES['picture_file']['size'] > 0)){
       $this->set_picture($_FILES['picture_file']['tmp_name']);
index c5adfd07ad762916a1a82b1ade7a020cb0a2db9c..366b5e1b98a1db181fa9a87ae92379f7b6e373b5 100644 (file)
@@ -71,7 +71,7 @@ class divListDevices extends MultiSelectWindow
 
     /* Get acls */
     $ui       = get_userinfo();
-    $acl      = $ui->get_permissions("cn=dummy,".get_ou('deviceou').$this->selectedBase,"devices/deviceGeneric");
+    $acl      = $ui->get_permissions($this->selectedBase,"devices/deviceGeneric");
     $acl_all  = $ui->has_complete_category_acls($this->selectedBase,"devices") ;