Code

Updated FAI Hooks.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 24 Nov 2008 14:23:05 +0000 (14:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 24 Nov 2008 14:23:05 +0000 (14:23 +0000)
-the direct edit link (a href) wasn't working due to missing ACL assignments.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13017 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiHook.inc

index 9f24f624c57c154bfc43db7ae0f06a442563aa92..d651382fc40be556e86d6f3f3a7b66e045a585f0 100644 (file)
@@ -195,12 +195,14 @@ class faiHook extends plugin
     if(isset($_GET['act']) && isset($_GET['id'])){
       if($_GET['act'] == "edit" && isset($this->SubObjects[base64_decode($_GET['id'])])){
         $obj = $this->SubObjects[base64_decode($_GET['id'])];
-          if($obj['status'] == "FreshLoaded"){
+        if($obj['status'] == "FreshLoaded"){
           $obj  = $this->get_object_attributes($obj,$this->sub_Load_Later);
         }
         $this->dialog= new $this->subClassName($this->config,$this->dn,$obj);
         $this->dialog->FAIstate = $this->FAIstate;
         $this->dialog->acl = $this->acl;
+        $this->dialog->set_acl_base($this->acl_base_for_current_object($obj['dn']));
+        $this->dialog->set_acl_category("fai");
         session::set('objectinfo',$obj['dn']);
         $this->dialog->parent = &$this;
         $this->is_dialog=true;