madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20996: LJSUP-9796: Scheduled entries atr avail...

Committer: sbelyaev
LJSUP-9796: Scheduled entries atr available for mange with XML RPC
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-01-25 12:27:15 UTC (rev 20995)
+++ trunk/cgi-bin/ljprotocol.pl	2012-01-25 13:11:04 UTC (rev 20996)
@@ -2352,8 +2352,7 @@
     }
 
     if ( $req->{ver} > 1 && LJ::is_enabled("delayed_entries") ) {
-        if ( $flags->{noauth} && LJ::DelayedEntry::is_future_date($req) &&
-             $req->{'custom_time'} ) {
+        if ( LJ::DelayedEntry::is_future_date($req) && $req->{'custom_time'} ) {
             return fail($err, 215) unless $req->{tz};
 
             # if posting to a moderated community, store and bail out here
@@ -2848,8 +2847,7 @@
     # never gets set in the "flat" protocol path
     return fail($err, 409) if length($req->{event}) >= LJ::BMAX_EVENT;
     
-    if ( $req->{ver} > 1 && $flags->{noauth} &&
-            LJ::is_enabled("delayed_entries") &&
+    if ( $req->{ver} > 1 && LJ::is_enabled("delayed_entries") &&
             LJ::DelayedEntry::is_future_date($req) ) {
         my $delayedid = delete $req->{delayedid};
         my $res = {};

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