index dd364ccd1a77db288303eee814701cd69eb4bfa2..968561d7ee613794043a01229821c00352141fdc 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;
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;