Code

Updated snapshot stuff, check acls here too.
[gosa.git] / gosa-plugins / sudo / admin / sudo / class_sudoManagement.inc
index e866e24eedb3997f2ea381e533f5323547c0d251..624a6029c4fcac68f4bd126f79dda6da6bbe3473 100644 (file)
@@ -36,6 +36,8 @@ class sudoManagement extends plugin
   private $base           = "";
 
   private $start_pasting_copied_objects = FALSE;
+
+  public $acl_module = array("sudo");
  
   /*! \brief */ 
   public function __construct(&$config, &$ui)
@@ -255,7 +257,7 @@ class sudoManagement extends plugin
           add_lock($this->dns,$this->ui->dn);
 
           /* Lock the current entry, so nobody will edit it during deletion */
-          $smarty->assign("info", msgPool::deleteInfo($dns_names,_("Sudo role")));
+          $smarty->assign("info", msgPool::deleteInfo($this->dns,_("Sudo role")));
           return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
         }
       }
@@ -347,7 +349,7 @@ class sudoManagement extends plugin
     }
 
     /* Check if there is a snapshot dialog open */
-    if($str = $this->showSnapshotDialog(sudo::get_sudoers_ou($this->config),$this->get_used_snapshot_bases())){
+    if($str = $this->showSnapshotDialog(sudo::get_sudoers_ou($this->config),$this->get_used_snapshot_bases(),$this)){
       return($str);
     }