index 968561d7ee613794043a01229821c00352141fdc..83d556da9e6dcd4bb35f1892e8cd9dc24ea57071 100644 (file)
$acl_dn = $this->acl_base_for_current_object($obj['dn']);
$acl = $this->ui->get_permissions($acl_dn,"fai/faiTemplateEntry");
if(preg_match("/d/",$acl)){
- if(($this->SubObjects[$entry]['status'] == "edited")||($this->SubObjects[$entry]['status'] == "FreshLoaded")){
+ $status = $this->SubObjects[$entry]['status'];
+ if($status == "edited" || $status == "FreshLoaded"){
$this->SubObjects[$entry]['status']= "delete";
}else{
unset($this->SubObjects[$entry]);