madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20393: LJSUP-10093: ljprotocol is updated now.

Committer: sbelyaev
LJSUP-10093: ljprotocol is updated now.
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-10-20 09:40:26 UTC (rev 20392)
+++ trunk/cgi-bin/ljprotocol.pl	2011-10-20 09:41:04 UTC (rev 20393)
@@ -2157,9 +2157,7 @@
             return fail($err, 215) unless $req->{tz};
 
             # if posting to a moderated community, store and bail out here
-            if ($uowner->{'journaltype'} eq 'C' &&
-                $need_moderated &&
-                !$flags->{'nomod'} && !$u->can_manage($uowner)) {
+            if ( !LJ::DelayedEntry::can_post_to($uowner, $u) && !$flags->{'nomod'} ) {
                 return fail($err, 322);
             }
 

Tags: livejournal, madeon, pl, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments