Code

Updated Fai templates.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Oct 2008 13:19:20 +0000 (13:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Oct 2008 13:19:20 +0000 (13:19 +0000)
-If an entry was edited via href instead of the edit icon, the user had no acls.

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

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

index 0b7eddc7ad49930bad8179a7dd3f40d56a400e2e..f53314bda3a6daa2739b43a2cb0425d51f01a8a1 100644 (file)
@@ -171,12 +171,13 @@ class faiTemplate extends plugin
     if(isset($_GET['act']) && isset($_GET['id'])){
       if($_GET['act'] == "edit" && isset($this->SubObjects[$_GET['id']])){
         $obj = $this->SubObjects[$_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_category("fai");
         session::set('objectinfo',$obj['dn']);
         $this->dialog->parent = &$this;
         $this->is_dialog=true;