From: hickert Date: Wed, 6 Jan 2010 11:22:35 +0000 (+0000) Subject: Allow to disable cut or copy actions in listings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=676a68a8696a1bab8fb8cce592d00995a4127421;p=gosa.git Allow to disable cut or copy actions in listings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15081 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 5c5e9c43d..e1440cfc1 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -881,7 +881,9 @@ class listing { } if ($action['type'] == "copypaste") { - $result.= $this->renderCopyPasteActions($row, $this->entries[$row]['dn'], $category, $class); + $copy = !isset($action['copy']) || $action['copy'] == "true"; + $cut = !isset($action['cut']) || $action['cut'] == "true"; + $result.= $this->renderCopyPasteActions($row, $this->entries[$row]['dn'], $category, $class,$copy,$cut); } else { $result.= $this->renderSnapshotActions($row, $this->entries[$row]['dn'], $category, $class); }