summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill-logo.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/cust_bill-logo.cgi')
-rwxr-xr-xhttemplate/view/cust_bill-logo.cgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi
index 235485f6b..e2f810c3f 100755
--- a/httemplate/view/cust_bill-logo.cgi
+++ b/httemplate/view/cust_bill-logo.cgi
@@ -1,4 +1,8 @@
-<%
+<% $conf->config_binary("logo$templatename.png") %>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('View invoices');
my $conf = new FS::Conf;
@@ -12,4 +16,5 @@ if ( $templatename && $conf->exists("logo_$templatename.png") ) {
}
http_header('Content-Type' => 'image/png' );
-%><%= $conf->config_binary("logo$templatename.png") %>
+
+</%init>