summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d8c7fed)
raw | patch | inline | side by side (parent: d8c7fed)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Mar 2010 13:22:58 +0000 (13:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Mar 2010 13:22:58 +0000 (13:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17354 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 1bc9583c9321f7226a373b1e29416b6d2cf89598..1e07bb8484b998b413535758d190d426dd211c53 100644 (file)
add_lock ($this->dns, $this->ui->dn);
$smarty->assign("info",msgPool::deleteInfo($dns_names));
- return($smarty->fetch(get_template_path('removeEntries.tpl', TRUE)));
+ return($smarty->fetch(get_template_path('removeEntries.tpl')));
}
}
}
/*! \brief Entry removal is confirmed, now remove objects
*/
function removeEntryConfirmed($action="",$target=array(),$all=array(),
- $altTabClass="",$altTabType="",$altAclCategory="")
+ $altTabClass="",$altTabType="",$altAclCategory="", $altAclPlugin="")
{
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
if($ldap->count()){
$attrs = $ldap->fetch();
$type= $this->get_type($attrs);
-
$acl = $this->ui->get_permissions($dn,"fai/".$type[1]);
if(preg_match("/d/",$acl)){
// Now save changes
- $str = management::removeEntryConfirmed($action,array($dn),$all,$type[0],$type[2],$type[1]);
+ $str = management::removeEntryConfirmed($action,array($dn),$all,$type[0],$type[2],"fai",$type[1]);
if(!empty($str)) return($str);
- FAI::save_release_changes_now();
$to_del = FAI::clean_up_releases($dn);
foreach($to_del as $dn){
$ldap->rmdir_recursive($dn);
}
}
}
+ if(count($this->dns)){
+ FAI::save_release_changes_now();
+ }
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */