From 593546ea1bdc7d204916af3cff8df7d529f86ba7 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Jul 2008 09:16:47 +0000 Subject: [PATCH] Updated block render option "read_active" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11574 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/smarty/plugins/block.render.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/smarty/plugins/block.render.php b/gosa-core/include/smarty/plugins/block.render.php index 7b06754c3..ac157f4c5 100644 --- a/gosa-core/include/smarty/plugins/block.render.php +++ b/gosa-core/include/smarty/plugins/block.render.php @@ -70,7 +70,7 @@ function smarty_block_render($params, $text, &$smarty) $text = preg_replace ("/\n/","GOSA_LINE_BREAK",$text); /* Disable objects, but keep those active that have mode=read_active */ - if(!(isset($params['mode']) && $params['mode']=='read_active')){ + if(!(isset($params['mode']) && ($params['mode']=='read_active') && preg_match("/(r|w)/",$acl))){ /* Disable options && greyout divlists */ $from = array("/class=['\"]list1nohighlight['\"]/i", -- 2.30.2