diff --git a/gosa-core/include/smarty/plugins/function.image.php b/gosa-core/include/smarty/plugins/function.image.php
index b20be0cfe7b46b86c7a61df4868576e2e3618b1a..3d120737fd4539978dbcc7ab5403239f385cdb9b 100644 (file)
$title = (isset($params['title']))? $params['title'] :"";
$align = (isset($params['align']))? $params['align'] :"";
//print_a(array($path,$label,$action,$title,$align));
- echo image($path,$action,$title,$align);
+
+ if(isset($params['acl'])){
+ if(!preg_match("/w/", $params['acl'])){
+ $path = preg_replace("/\.png/","-grey.png", $path);
+ $action = "";
+ }
+ }
+
+ if(!empty($align)){
+ echo image($path,$action,$title,$align);
+ }else{
+ echo image($path,$action,$title);
+ }
}
?>