diff --git a/gosa-plugins/fai/admin/fai/class_divListFai.inc b/gosa-plugins/fai/admin/fai/class_divListFai.inc
index 2fba9796636b57a0d0940d6abbbd79eb84b15d32..6e897c156e13f39916239844d8090962b3844178 100644 (file)
$add_sep = false;
/* Get complete fai acls, to be able to check if we must show or hide the snapshot abilities */
- $acl_all = $ui->has_complete_category_acls($this->config->current['BASE'],$this->module);
+ $acl_all = $ui->has_complete_category_acls($this->parent->acl_base,$this->module);
/* Add default header */
$listhead = MultiSelectWindow::get_default_header(false);
$s .= "..|<img src='images/lists/new.png' alt='' border='0' class='center'>".
" "._("Create")."|\n";
- $acl = $ui->get_permissions($this->config->current['BASE'],"fai/faiProfile");
+ $acl = $ui->get_permissions($this->parent->acl_base,"fai/faiProfile");
if($this->parent->lock_type == "freeze" && !$this->parent->allow_freeze_object_attach){
$s.= "...|<input class='center' type='image' src='plugins/fai/images/freeze.png' alt=''>".
" "._("Freezed")."|\n";
"Create_package" , _("PK") , "faiPackage"));
foreach($arr as $ar){
- $acl = $ui->get_permissions($this->config->current['BASE'],"fai/".$ar[4]);
+ $acl = $ui->get_permissions($this->parent->acl_base,"fai/".$ar[4]);
if(preg_match("/c/",$acl)){
$s.= "...|<input class='center' type='image' src='".$ar[0]."' alt=''>".
" ".$ar[1]."|".$ar[2]."|\n";
/* Add copy & cut icons */
$ui = get_userinfo();
$action ="";
- $acl_all = $ui->has_complete_category_acls($this->config->current['BASE'],$this->module);
+ $acl_all = $ui->has_complete_category_acls($this->parent->acl_base,$this->module);
if(preg_match("/^opsi_/",$type)){
$editlink ="<a href='?plug=".$_GET['plug']."&edit_opsi_entry=%KEY%' title='%TITLE%'>%NAME%</a>";
$display = "<div style='overflow:hidden; height:1em;'>".$display."</div>";
- /* Create each field */
+ /* Some objects are non ldap objects which do not have a dn.
+ */
+ if(!isset($value['dn'])) $value['dn'] = "";
+
+ /* Create each field */
$field0 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
"attach" => "style='width:20px;'");
$field1 = array("string" => $img , "attach" => "style='text-align:center;width:20px;'");