Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r11148: LJSUP-9901: Add ability to put entry fro...

Committer: anazarov
LJSUP-9901: Add ability to put entry from community to owner and maintainers
U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-11-03 09:26:19 UTC (rev 11147)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-11-03 09:41:27 UTC (rev 11148)
@@ -64,7 +64,13 @@
     ## community checks
     my $need_promoter_check = 1;
     unless ( $LJ::DISABLED{'community_selfpromo'} ) {
-        if ( $journal->is_community and $promoter->can_manage($journal) ) {
+        my $promo = $class->current_entry_info;
+        my $entry_active = $promo &&
+            LJ::u_equals($promo->promoter, $promoter) &&
+            $promo->journalid == $entry->journalid &&
+            $promo->jitemid == $entry->jitemid;
+
+        if ( $journal->is_community and $promoter->can_manage($journal) || $entry_active ) {
             $need_promoter_check = 0;
         }
     }

Tags: anazarov, ljcom, nfokz, pm
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