index dd364ccd1a77db288303eee814701cd69eb4bfa2..83d556da9e6dcd4bb35f1892e8cd9dc24ea57071 100644 (file)
$ldap->search("(&(objectClass=FAIclass)(objectClass=".$this->subClass."))",$attrs_to_search);
while($object = $ldap->fetch()){
+
+ /* Skip objects, that are tagged as removed */
+ if(isset($object['FAIstate'][0])){
+ if(preg_match("/removed$/",$object['FAIstate'][0])){
+ continue;
+ }
+ }
+
/* Set status for save management */
$objects = array();
$objects['status'] = "FreshLoaded";
$obj = $this->get_object_attributes($obj,$this->sub_Load_Later);
}
$this->dialog= new $this->subClassName($this->config,$this->dn,$obj);
+ $this->dialog->set_acl_base($this->acl_base);
+ $this->dialog->set_acl_category("fai");
+
$_SESSION['objectinfo'] = $obj['dn'];
$this->dialog->parent = &$this;
$this->is_dialog=true;
$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]);
if(preg_match("/c/",$acl)){
$this->dialog= new $this->subClassName($this->config,"new");
+ $this->dialog->set_acl_base($this->acl_base);
+ $this->dialog->set_acl_category("fai");
$this->is_dialog=true;
}
}
$tmp = $this->getList(true);
+ /* Create div list with all sub entries listed */
foreach($this->SubObjects as $key => $name){
+ /* Skip removed entries */
+ if($name['status'] == "delete") continue;
+
+ /* Get permissions */
$dn = $this->acl_base_for_current_object($name['dn']);
$acl = $this->ui->get_permissions($dn,"fai/faiTemplateEntry") ;
$act = "";
if(empty($obj[$attrs])){
$obj[$attrs] = array();
}
- $tmp[$attrs] = stripslashes($obj[$attrs]);
+ $tmp[$attrs] =($obj[$attrs]);
}
$tmp['objectClass'] = $this->subClasses;