fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-03-29 03:32 am

[dw-free] Beta tester mode for jQuery journal pages

[commit: http://hg.dwscoalition.org/dw-free/rev/689445f46ad6]

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

Shortcircuit so that things don't crash and burn for anonymous users.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/BetaFeatures.pm
--------------------------------------------------------------------------------
diff -r 11b2bc180af4 -r 689445f46ad6 cgi-bin/LJ/BetaFeatures.pm
--- a/cgi-bin/LJ/BetaFeatures.pm	Tue Mar 29 11:01:20 2011 +0800
+++ b/cgi-bin/LJ/BetaFeatures.pm	Tue Mar 29 11:32:22 2011 +0800
@@ -111,6 +111,8 @@ sub user_in_beta {
     my $class = shift;
     my ($u, $key) = @_;
 
+    return 0 unless $u;
+
     # is the cap set?
     return 0 unless $u->in_class($class->cap_name);
 
--------------------------------------------------------------------------------

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