From 444187623e38983a7c0b67f82f26e07f2cf58e1a Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Dec 2006 07:29:43 +0000 Subject: [PATCH] Fixed FAIhook acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5296 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 8 ++++---- plugins/admin/fai/class_faiHookEntry.inc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index e0817a17c..926ce5dda 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -286,7 +286,7 @@ class faiHook extends plugin foreach($this->getList(true) as $key => $name){ $dn= $this->acl_base_for_current_object($name['dn']); - $acl = $this->ui->get_permissions($dn,"fai/faiScriptEntry") ; + $acl = $this->ui->get_permissions($dn,"fai/faiHookEntry") ; $act = ""; /* Check if this object is freezed, in this case hide the delete icon */ @@ -300,7 +300,7 @@ class faiHook extends plugin } /* Check if we are allowed to use the export button for this object */ - $s_acl = $this->ui->get_permissions($dn,"fai/faiScriptEntry","FAIscript") ; + $s_acl = $this->ui->get_permissions($dn,"fai/faiHookEntry","FAIscript") ; if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new") || !preg_match("/r/",$s_acl)){ $down = ""; }else{ @@ -310,7 +310,7 @@ class faiHook extends plugin } /* Check if we are allowed to view the object */ - $s_acl = $this->ui->get_permissions($dn,"fai/faiScriptEntry","cn") ; + $s_acl = $this->ui->get_permissions($dn,"fai/faiHookEntry","cn") ; if(preg_match("/r/",$s_acl)){ $divlist->AddEntry(array( array("string"=>$name['name']), array("string"=>$down , "attach" => "style='width:20px;'"), @@ -338,7 +338,7 @@ class faiHook extends plugin $tmp = $this->plInfo(); $c_dn = $this->acl_base_for_current_object($this->dn); - $smarty->assign("sub_object_is_addable", preg_match("/c/",$this->ui->get_permissions($c_dn,"fai/faiScriptEntry")) && $this->FAIstate!="freeze"); + $smarty->assign("sub_object_is_addable", preg_match("/c/",$this->ui->get_permissions($c_dn,"fai/faiHookEntry")) && $this->FAIstate!="freeze"); foreach($tmp['plProvidedAcls'] as $name => $translation){ $smarty->assign($name."ACL",$this->getacl($name)); } diff --git a/plugins/admin/fai/class_faiHookEntry.inc b/plugins/admin/fai/class_faiHookEntry.inc index 9a9450c77..994f79126 100644 --- a/plugins/admin/fai/class_faiHookEntry.inc +++ b/plugins/admin/fai/class_faiHookEntry.inc @@ -18,7 +18,7 @@ class faiHookEntry extends plugin "savelog", "softupdate", "sysinfo","updatebase"); var $dn = ""; var $cn = ""; - var $FAItask = ""; + var $FAItask = "chboot"; var $FAIscript = ""; var $description = ""; var $status = "new"; -- 2.30.2