kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-04-19 03:50 pm

[dw-free] Community search page should not show to logged out users

[commit: http://hg.dwscoalition.org/dw-free/rev/4875a1fd6eb9]

http://bugs.dwscoalition.org/show_bug.cgi?id=2447

Require login to use community search.

Patch by [personal profile] jportela.

Files modified:
  • htdocs/community/search.bml
--------------------------------------------------------------------------------
diff -r 108599c7bc5f -r 4875a1fd6eb9 htdocs/community/search.bml
--- a/htdocs/community/search.bml	Sun Apr 18 21:48:12 2010 +0000
+++ b/htdocs/community/search.bml	Mon Apr 19 10:50:02 2010 -0500
@@ -40,7 +40,7 @@ body<=
 
 <?_code
 {
-    my $remote = LJ::get_remote();
+    my $remote = LJ::get_remote() or return "<?needlogin?>";
     if (LJ::Hooks::are_hooks("cprod_redirect_user")) {
         return LJ::Hooks::run_hook("cprod_redirect_user", $remote);
     }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org