Code

Udpated fai acls
[gosa.git] / plugins / admin / groups / class_groupManagement.inc
index 69ca59c013d504b67fb44712969659327a75239d..2d2bc5248012c18dd0ae9282a4e354ab381505c7 100644 (file)
@@ -340,12 +340,13 @@ class groupManagement extends plugin
       return ($display);
     }
 
-    
+
     /* Check if there is a snapshot dialog open */
-    if($str = $this->showSnapshotDialog($this->DivListGroup->selectedBase,get_groups_ou())){
+    $base = $this->DivListGroup->selectedBase;
+    if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases())){
       return($str);
     }
-
+   
     /* Display dialog with group list */
     $this->DivListGroup->parent = $this;
     $this->DivListGroup->execute();
@@ -359,6 +360,15 @@ class groupManagement extends plugin
     return($this->DivListGroup->Draw());
   }
 
+
+  /* Return departments, that will be included within snapshot detection */
+  function get_used_snapshot_bases()
+  {
+    return(array(get_groups_ou().$this->DivListGroup->selectedBase));
+  }
+
+
+
   function reload($CreatePosixsList=false)
   {
     $this->grouplist        = array();