Committer: afedorov
LJSUP-8485: Deny posting for users without validating the accountU trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl =================================================================== --- trunk/cgi-bin/ljprotocol.pl 2011-05-19 04:02:03 UTC (rev 19080) +++ trunk/cgi-bin/ljprotocol.pl 2011-05-19 04:26:51 UTC (rev 19081) @@ -1652,7 +1652,7 @@ # except syndicated (rss, 'Y') journals # unless this is approved from the mod queue (we'll error out initially, but in case they change later) return fail($err, 155, LJ::Lang::ml('event.post.error.not_validated_email')) - unless $flags->{'noauth'} || $u->{'status'} eq 'A' || $u->{'journaltype'} eq 'Y'; + unless $flags->{'first_post'} || $u->{'status'} eq 'A' || $u->{'journaltype'} eq 'Y'; $req->{'event'} =~ s/\r\n/\n/g; # compact new-line endings to more comfort chars count near 65535 limit