Code

Updated block render option "read_active"
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 09:16:47 +0000 (09:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 09:16:47 +0000 (09:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11574 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 7b06754c3fc9497ee84c240c21c2334af8e8d302..ac157f4c5ea8a08a4575e89b1edb4bc4a65eb7c1 100644 (file)
@@ -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",