From 04b77e50db7d59924f80e98e79c845d307dba04e Mon Sep 17 00:00:00 2001 From: psc Date: Thu, 18 Feb 2010 09:28:22 +0000 Subject: [PATCH] Bugfix for #4183 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/gosa-core/include/smarty/plugins/block.render.php b/trunk/gosa-core/include/smarty/plugins/block.render.php index ac157f4c5..f5e37c61b 100644 --- a/trunk/gosa-core/include/smarty/plugins/block.render.php +++ b/trunk/gosa-core/include/smarty/plugins/block.render.php @@ -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); -- 2.30.2