Code

updated templates
[gosa.git] / gosa-plugins / goto / admin / systems / goto / tabs_workstation.inc
index 2ee5799846210c3feb0a5cc9a3988e4cebb446b7..5086602cf04e0ec21690a6004568f04e3fdb8e8e 100644 (file)
@@ -3,13 +3,18 @@
 class worktabs extends tabs
 {
 
-  function worktabs($config, $data, $dn,$category)
+  public $was_activated = FALSE;
+
+  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){
@@ -26,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 == ""){