X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fapplications%2Fclass_applicationManagement.inc;h=801ca3fe6268847ea647622a53ecf8b47b7f3b13;hb=77e94f517b0910562a0548141c3d5c82366e19fb;hp=5c88b5756f006427b6c1e93bde3ad8544ca26c13;hpb=e9033939c17cc315325b5721cab2c32c406684da;p=gosa.git diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc index 5c88b5756..801ca3fe6 100644 --- a/plugins/admin/applications/class_applicationManagement.inc +++ b/plugins/admin/applications/class_applicationManagement.inc @@ -452,9 +452,14 @@ class applicationManagement extends plugin if($s_action == "copy"){ $this->CopyPasteHandler->Clear(); $dn = $this->applications[$s_entry]['dn']; - $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn); - $objNew = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], "new"); - $this->CopyPasteHandler->Copy($obj,$objNew); + + /* Check Acls */ + $acl_all= $this->ui->has_complete_category_acls($dn,"application"); + if(preg_match("/(c.*w|w.*c)/",$acl_all)){ + $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn, "application"); + $objNew = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], "new","application"); + $this->CopyPasteHandler->Copy($obj,$objNew); + } } /* Copy current object to CopyHandler @@ -462,8 +467,13 @@ class applicationManagement extends plugin if($s_action == "cut"){ $this->CopyPasteHandler->Clear(); $dn = $this->applications[$s_entry]['dn']; - $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn); - $this->CopyPasteHandler->Cut($obj); + + /* Check Acls */ + $acl_all= $this->ui->has_complete_category_acls($dn,"application"); + if(preg_match("/(c.*w|w.*c)/",$acl_all)){ + $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn, "application"); + $this->CopyPasteHandler->Cut($obj); + } } }