From: hickert Date: Wed, 6 Jan 2010 13:45:49 +0000 (+0000) Subject: Allow to disable cut or copy X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=003f1e222fcf94b5db62db16dfabc18448d112cc;p=gosa.git Allow to disable cut or copy git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15087 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index e1440cfc1..3b83e0811 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -1146,7 +1146,9 @@ class listing { // Check for special types switch ($action['type']) { case 'copypaste': - $result.= $this->renderCopyPasteMenu($separator); + $cut = !isset($action['cut']) || $action['cut'] != "false"; + $copy = !isset($action['copy']) || $action['copy'] != "false"; + $result.= $this->renderCopyPasteMenu($separator, $copy , $cut); break; case 'snapshot':