diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc b/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc
index 517ed4bcf2f68d5e1dd019379ccbc3b89ee9623c..75f6bd4e9b2511d9946d6fe6c24ead250cf8ea97 100644 (file)
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;
+ $this->acl_category = $category;
+
foreach ($data as $tab){
if(!class_available($tab['CLASS'])) continue;
$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('workstationRDN').$baseobject->base;
+ $cn = preg_replace('/,/', '\,', $baseobject->cn);
+ $cn = preg_replace('/"/', '\"', $cn);
+ $this->dn= "cn=".$cn.",".get_ou("workgeneric", "workstationRDN").$baseobject->base;
if($this->dn != $baseobject->orig_dn && $baseobject->orig_dn != "new"){