Add access right to view attachments
[freeside.git] / httemplate / edit / cust_main_attach.cgi
index 5e9b16c..a007310 100755 (executable)
@@ -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') ) {