Code

Added function to render new images
[gosa.git] / gosa-core / include / smarty / plugins / block.render.php
index 7b06754c3fc9497ee84c240c21c2334af8e8d302..83a8fea8e1e04fbcd1e276894a2070503e36f5ab 100644 (file)
@@ -70,15 +70,17 @@ 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",
                                "/class=['\"]list0['\"]/i",
-                               "/class=['\"]list1['\"]/i");
+                               "/class=['\"]list1['\"]/i",
+                               "/class=['\"]sortableListItem[^'\"]*['\"]/i");
                $to     = array("class='list1nohighlightdisabled'",
                                "class='list1nohighlightdisabled'",
-                               "class='list1nohighlightdisabled'");
+                               "class='list1nohighlightdisabled'",
+                               "class='sortableListItemDisabled'");
                                
                if(!preg_match("/ disabled /",$text)){
                        $from [] = "/name=/i" ;