summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main
diff options
context:
space:
mode:
authormark <mark>2009-12-14 01:41:11 +0000
committermark <mark>2009-12-14 01:41:11 +0000
commit1642d77450f5ecf931bfe94687386583ac3b367d (patch)
tree694b69ec944b8eb7ead8f505499192fb261c37dc /httemplate/view/cust_main
parent036dda4f6ffa045e4597ffb61d3e86763759d70e (diff)
Add access right to view attachments
Diffstat (limited to 'httemplate/view/cust_main')
-rwxr-xr-xhttemplate/view/cust_main/attachments.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/attachments.html b/httemplate/view/cust_main/attachments.html
index dbb29a7c0..b16a81eae 100755
--- a/httemplate/view/cust_main/attachments.html
+++ b/httemplate/view/cust_main/attachments.html
@@ -109,7 +109,7 @@
my $conf = new FS::Conf;
my $curuser = $FS::CurrentUser::CurrentUser;
-
+die "access denied" if !$curuser->access_right('View attachments');
my(%opt) = @_;
my $custnum = $opt{'custnum'};