fix 2.3-specific syntax error viewing sent messages, RT#16174
authorivan <ivan>
Sat, 21 Jan 2012 01:58:51 +0000 (01:58 +0000)
committerivan <ivan>
Sat, 21 Jan 2012 01:58:51 +0000 (01:58 +0000)
httemplate/view/cust_msg.html

index 0992d8a..f6ce4c5 100755 (executable)
@@ -38,8 +38,8 @@ readonly=1 cols=80 rows=20>
 <%init>
 
 my $curuser = $FS::CurrentUser::CurrentUser;
 <%init>
 
 my $curuser = $FS::CurrentUser::CurrentUser;
-die "access denied" if !$curuser->access_right('View email logs'))
-                    && !$curuser->access_right('Configuration');
+die "access denied" unless $curuser->access_right('View email logs')
+                        || $curuser->access_right('Configuration');
 
 my ($custmsgnum) = $cgi->keywords;
 $custmsgnum =~ /^(\d+)$/ or die "illegal custmsgnum";
 
 my ($custmsgnum) = $cgi->keywords;
 $custmsgnum =~ /^(\d+)$/ or die "illegal custmsgnum";