From 83c6698ada6664749e5929267232d235f0cd3171 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 8 Sep 2006 04:42:43 +0000 Subject: [PATCH] Mimetype : Acl update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4620 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/mimetypes/class_mimetypeManagement.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc index 87b34ccb7..7bd52da85 100755 --- a/plugins/admin/mimetypes/class_mimetypeManagement.inc +++ b/plugins/admin/mimetypes/class_mimetypeManagement.inc @@ -242,7 +242,7 @@ class mimetypeManagement extends plugin /* Register mimetabs to trigger edit dialog */ - $this->mimetabs= new mimetabs($this->config,$this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes/mimetype"); + $this->mimetabs= new mimetabs($this->config,$this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes"); $this->mimetabs->set_acl_base($this->dn); $_SESSION['objectinfo']= $this->dn; } @@ -294,7 +294,7 @@ class mimetypeManagement extends plugin if ($this->acl_is_removeable()){ /* Delete request is permitted, perform LDAP action */ - $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes/mimetype"); + $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes"); $this->mimetabs->set_acl_base($this->dn); $this->mimetabs->delete (); gosa_log ("Mime type object'".$this->dn."' has been removed"); @@ -443,8 +443,10 @@ class mimetypeManagement extends plugin if($s_action == "copy"){ $this->CopyPasteHandler->Clear(); $dn = $this->mimetypes[$s_entry]['dn']; - $obj = new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $dn); - $objNew = new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], "new"); + $obj = new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $dn,"mimetypes"); + $obj->set_acl_base($this->dn); + $objNew = new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], "new","mimetypes"); + $objNew->set_acl_base($this->dn); $this->CopyPasteHandler->Copy($obj,$objNew); } -- 2.30.2