diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc
index 5c88b5756f006427b6c1e93bde3ad8544ca26c13..4ba527185a31917bb3082a4470931cb18cfe4a5e 100644 (file)
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");
+
+ /* Check Acls */
+ $acl_all= $this->ui->has_complete_category_acls($dn,"application");
+ if(!preg_match("/(c.*w|w.*c)/",$acl_all)){
+ return("");
+ }
+
+ $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);
}
if($s_action == "cut"){
$this->CopyPasteHandler->Clear();
$dn = $this->applications[$s_entry]['dn'];
- $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn);
+
+ /* Check Acls */
+ $acl_all= $this->ui->has_complete_category_acls($dn,"application");
+ if(!preg_match("/(c.*w|w.*c)/",$acl_all)){
+ return("");
+ }
+
+ $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn, "application");
$this->CopyPasteHandler->Cut($obj);
}
}