Code

updated templates
[gosa.git] / gosa-plugins / goto / admin / systems / goto / tabs_workstation.inc
index 517ed4bcf2f68d5e1dd019379ccbc3b89ee9623c..5086602cf04e0ec21690a6004568f04e3fdb8e8e 100644 (file)
@@ -5,13 +5,16 @@ class worktabs extends tabs
 
   public $was_activated = FALSE;
 
-  function worktabs($config, $data, $dn,$category)
+  function worktabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
   {
     
     /* Save dn */
     $this->dn= $dn;
     $this->config= $config;
 
+    $this->hide_refs = $hide_refs;
+    $this->hide_acls = $hide_acls;
+
     $baseobject= NULL;
 
     foreach ($data as $tab){
@@ -28,6 +31,7 @@ class worktabs extends tabs
 
       $this->by_object[$tab['CLASS']]->parent= &$this;
       $this->by_object[$tab['CLASS']]->set_acl_category($category);
+      $this->read_only |= $this->by_object[$tab['CLASS']]->read_only;
 
       /* Initialize current */
       if ($this->current == ""){