summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8dbda6d)
raw | patch | inline | side by side (parent: 8dbda6d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Mar 2010 15:27:46 +0000 (15:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Mar 2010 15:27:46 +0000 (15:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15996 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/smarty/plugins/function.image.php | patch | blob | history |
diff --git a/gosa-core/include/smarty/plugins/function.image.php b/gosa-core/include/smarty/plugins/function.image.php
index 62573a27948a989564dd08ebf138ec421adb252d..3d120737fd4539978dbcc7ab5403239f385cdb9b 100644 (file)
$align = (isset($params['align']))? $params['align'] :"";
//print_a(array($path,$label,$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{