From: hickert Date: Wed, 9 Jul 2008 09:16:47 +0000 (+0000) Subject: Updated block render option "read_active" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=593546ea1bdc7d204916af3cff8df7d529f86ba7;p=gosa.git Updated block render option "read_active" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11574 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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",