sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r20333: LJSUP-10082: Unlogged users redirected t...

Committer: vtroitsky
LJSUP-10082: Unlogged users redirected to login page.
U   trunk/htdocs/customize/advanced/layeredit.bml
Modified: trunk/htdocs/customize/advanced/layeredit.bml
===================================================================
--- trunk/htdocs/customize/advanced/layeredit.bml	2011-10-14 15:16:19 UTC (rev 20332)
+++ trunk/htdocs/customize/advanced/layeredit.bml	2011-10-14 16:14:44 UTC (rev 20333)
@@ -3,10 +3,13 @@
     use strict;
     use vars qw(%POST %GET );
     use LJ::Widget::LayerEditor;
+    
+    my $remote = LJ::get_remote();
+    return "<?needlogin?>" unless $remote;
+
     my %from_post = LJ::Widget->handle_post(\%POST, qw ( LayerEditor ));
 
     my $widget = LJ::Widget::LayerEditor->new;
-
     my %template_params;
     $widget->prepare_template_params(\%template_params, %GET, %from_post);
 

Tags: bml, livejournal, sunnyman, vtroitsky
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