Code

Updated ACL check for copy&paste action menu entries
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 09:13:26 +0000 (09:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 09:13:26 +0000 (09:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12999 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/applications/class_divListApplication.inc

index 18a79c93ee38379baf6e1f8f0e68c06fe164d14a..bc4ae488f8e63277449091070a0c17ab870b7817 100644 (file)
@@ -120,10 +120,13 @@ class divListApplication extends MultiSelectWindow
       "&nbsp;"._("Remove")."|"."remove_multiple|\n";
 
     /* Add Copy & Paste header */
-    $s .= $this->parent->get_copypaste_header($this->selectedBase,$this->module);
-
-    /* Add snapshot icons */
-    $s .= $this->parent->get_snapshot_header($this->selectedBase,$this->module);
+    if($this->parent->IsReleaseManagementActivated()){
+      $s .= $this->parent->get_copypaste_header($this->acl_base,$this->module);
+      $s .= $this->parent->get_snapshot_header($this->acl_base,$this->module);
+    }else{
+      $s .= $this->parent->get_copypaste_header($this->selectedBase,$this->module);
+      $s .= $this->parent->get_snapshot_header($this->selectedBase,$this->module);
+    }
 
     $this->SetDropDownHeaderMenu($s);
     $this->SetListHeader($listhead);