Code

Bugfix for #4183
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Feb 2010 09:28:22 +0000 (09:28 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Feb 2010 09:28:22 +0000 (09:28 +0000)
When rendering checkboxes they should only be shown if
the attribute in question is allowed to be editted.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15645 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-core/include/smarty/plugins/block.render.php

index ac157f4c5ea8a08a4575e89b1edb4bc4a65eb7c1..f5e37c61b2e1695f9a2d65c8c88adfcbf5a13295 100644 (file)
@@ -26,7 +26,7 @@ function smarty_block_render($params, $text, &$smarty)
      * The parameter 'checked' specifies whether the box is checked or not.
      *  The checkbox disables or enables the current object.
      */
-       if(isset($params['checkbox']) && $params['checkbox']){
+       if(isset($params['checkbox']) && $params['checkbox'] && preg_match("/w/i", $acl)){
 
                /* Detect name and id of the current object */
                $use_text = preg_replace("/\n/"," ",$text);