diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc b/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc
index 08e095ee165a6691147759abbfa44cf225486a98..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){
$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"){