summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f70e0e9)
raw | patch | inline | side by side (parent: f70e0e9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Aug 2008 07:33:51 +0000 (07:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Aug 2008 07:33:51 +0000 (07:33 +0000) |
-Remove deleted variable entries from ldap
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12185 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12185 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiVariable.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiVariable.inc b/gosa-plugins/fai/admin/fai/class_faiVariable.inc
index 90937cd97d00f683bc43440bf16315659948d7d5..bf49ff538a6d5f9a01e7401014da0479da04dd9b 100644 (file)
$c_dn = $this->acl_base_for_current_object($this->SubObjects[$var]['dn']);
$acl = $this->ui->get_permissions($c_dn,"fai/faiVariable");
if(preg_match("/d/",$acl)){
- if($this->SubObjects[$var]['status'] == "edited"){
+ if($this->SubObjects[$var]['status'] != "new"){
$this->SubObjects[$var]['status']= "delete";
}else{
unset($this->SubObjects[$var]);
$Objects[$name] = $obj;
}
}
- foreach($this->SubObjects as $name => $obj){
- if($obj['status'] != "delete"){
- $Objects[$name] = $obj;
- }
- }
foreach($Objects as $name => $obj){