diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc b/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc
index e4c792415dcfa84d0ff52e2312ef8d69ab6c73a7..5086602cf04e0ec21690a6004568f04e3fdb8e8e 100644 (file)
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){
+
+ if(!class_available($tab['CLASS'])) continue;
$this->by_name[$tab['CLASS']]= $tab['NAME'];
if ($baseobject === NULL){
$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 == ""){
/* Check for new 'dn', in order to propagate the
'dn' to all plugins */
$baseobject= $this->by_object['workgeneric'];
- $this->dn= "cn=".$baseobject->cn.",".get_ou('workstationou').$baseobject->base;
+ $this->dn= "cn=".$baseobject->cn.",".get_ou('workstationRDN').$baseobject->base;
if($this->dn != $baseobject->orig_dn && $baseobject->orig_dn != "new"){