From: hickert Date: Tue, 17 Apr 2007 08:02:35 +0000 (+0000) Subject: Skip export if content is not readable X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=79dd1ec67ec2229e85de047b1c10b3adcf7c4bb2;p=gosa.git Skip export if content is not readable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6063 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index 113cbcd73..61d729e8a 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -55,7 +55,7 @@ class gotomasses extends plugin $this->contents_initially_loaded = TRUE; } - if(isset($_POST['export_gotomass_csv'])){ + if(isset($_POST['export_gotomass_csv']) && $this->acl_is_writeable("something")){ $data = ""; foreach($this->contents as $val){ $data .= $val['MAC'].", ".$val['OG']."\n"; diff --git a/plugins/addons/gotomasses/contents.tpl b/plugins/addons/gotomasses/contents.tpl index e578eebf3..ea264dbac 100644 --- a/plugins/addons/gotomasses/contents.tpl +++ b/plugins/addons/gotomasses/contents.tpl @@ -9,7 +9,11 @@ {t}Export{/t}  - + {if $is_readable} + + {else} + + {/if} @@ -20,8 +24,8 @@ {else} - - + + {/if} @@ -110,8 +114,8 @@ {/if} {else} - - + + {/if}