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

        Patch by fu. 

diffs (12 lines):

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);
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to