projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add access right to view attachments
[freeside.git]
/
httemplate
/
edit
/
cust_main_attach.cgi
diff --git
a/httemplate/edit/cust_main_attach.cgi
b/httemplate/edit/cust_main_attach.cgi
index
5e9b16c
..
a007310
100755
(executable)
--- a/
httemplate/edit/cust_main_attach.cgi
+++ b/
httemplate/edit/cust_main_attach.cgi
@@
-44,6
+44,7
@@
onclick="return(confirm('Delete this file?'));">
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
+die "access denied" if !$curuser->access_right('View attachments');
my $attachnum = '';
my $attach;
if ( $cgi->param('error') ) {