diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc
index c368abdf5d1a3f563b113e52a92267f31789ad11..624a6029c4fcac68f4bd126f79dda6da6bbe3473 100644 (file)
private $base = "";
private $start_pasting_copied_objects = FALSE;
+
+ public $acl_module = array("sudo");
/*! \brief */
public function __construct(&$config, &$ui)
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)));
}
}
}
/* 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);
}
$this->CopyPasteHandler->cleanup_queue();
$dn = $this->list[$s_entry]['dn'];
- if($s_action == "copy" && preg_match("/r/",$ui->has_complete_category_acls($dn,"sudo"))){
+ if($s_action == "copy" && $ui->is_copyable($dn,"sudo","sudo")){
$this->CopyPasteHandler->add_to_queue($dn,$s_action,"sudotabs","SUDOTABS","sudo");
}
-# if($s_action == "cut" && preg_match("/(r.*d|d.*r)/",$ui->has_complete_category_acls($dn,"sudo"))){
+# if($s_action == "cut" && $ui->is_cutable($dn,"sudo","sudo")){
# $this->CopyPasteHandler->add_to_queue($dn,$s_action,"sudotabs","SUDOTABS","sudo");
# }
}
foreach($this->list_get_selected_items() as $id){
$dn = $this->list[$id]['dn'];
- if($s_action == "copy_multiple" && preg_match("/r/",$ui->has_complete_category_acls($dn,"sudo"))){
+ if($s_action == "copy_multiple" && $ui->is_copyable($dn,"sudo","sudo")){
$this->CopyPasteHandler->add_to_queue($dn,"copy","sudotabs","SUDOTABS","sudo");
}
-# if($s_action == "cut_multiple" && preg_match("/(r.*d|d.*r)/",$ui->has_complete_category_acls($dn,"sudo"))){
+# if($s_action == "cut_multiple" && $ui->is_cutable($dn,"sudo","sudo")){
# $this->CopyPasteHandler->add_to_queue($dn,"cut","sudotabs","SUDOTABS","sudo");
# }
}
if($this->start_pasting_copied_objects && $this->CopyPasteHandler->entries_queued()){
/* Get dialog */
- $data = $this->CopyPasteHandler->execute();
$this->CopyPasteHandler->SetVar("base",$this->DivListSudo->selectedBase);
+ $data = $this->CopyPasteHandler->execute();
/* Return dialog data */
if(!empty($data)){