madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20500: LJSUP-10298: Need to hide flag "don't pr...

Committer: sbelyaev
LJSUP-10298: Need to hide flag "don't provide to friends and in RSS" if user select community for field "Post to" or tries to post entry to community

U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-11-08 13:43:43 UTC (rev 20499)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-11-08 14:01:16 UTC (rev 20500)
@@ -898,6 +898,8 @@
         },
          'do_not_add' => sub {
             return '' unless LJ::is_enabled("delayed_entries");
+            my $journalu = LJ::load_user($opts->{'usejournal'}) || $remote;  
+            return '' if $journalu->is_community;
 
             my $selected = $opts->{'opt_backdated'} || 0;
             my $dot_add_check = LJ::html_check({

Tags: livejournal, madeon, pm, 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