Add access right to view attachments
[freeside.git] / httemplate / view / cust_main / attachments.html
index dbb29a7..b16a81e 100755 (executable)
 
 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'};