afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-05-28 03:37 pm

[dw-free] can_use_esn not checking account type

[commit: http://hg.dwscoalition.org/dw-free/rev/4cd0cc1e511c]

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

Don't allow if community or syndicated account

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 86f0b623dd72 -r 4cd0cc1e511c cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Wed May 27 18:25:24 2009 +0000
+++ b/cgi-bin/LJ/User.pm	Thu May 28 15:37:37 2009 +0000
@@ -4713,6 +4713,7 @@ sub can_add_inbox_subscription {
 # can this user use ESN?
 sub can_use_esn {
     my $u = shift;
+    return 0 if $u->is_community || $u->is_syndicated;
     return 0 unless LJ::is_enabled('esn');
     return LJ::is_enabled('esn_ui', $u);
 }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

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