[dw-free] Community polls should not be affected by personal journal bannings
[commit: http://hg.dwscoalition.org/dw-free/rev/c6748f3b031f]
http://bugs.dwscoalition.org/show_bug.cgi?id=2359
Only block from voting if they are banned from the journal or community the
poll is tied to.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2359
Only block from voting if they are banned from the journal or community the
poll is tied to.
Patch by
Files modified:
- cgi-bin/LJ/Poll.pm
--------------------------------------------------------------------------------
diff -r 07866d550178 -r c6748f3b031f cgi-bin/LJ/Poll.pm
--- a/cgi-bin/LJ/Poll.pm Sat Jan 01 21:33:49 2011 +0800
+++ b/cgi-bin/LJ/Poll.pm Sat Jan 01 21:49:47 2011 +0800
@@ -1188,8 +1188,7 @@ sub can_vote {
return 0 if $self->whovote eq "trusted" && !$trusted;
- return 0 if $self->journal->has_banned( $remote )
- or $self->poster->has_banned( $remote );
+ return 0 if $self->journal->has_banned( $remote );
if ($self->is_createdate_restricted) {
my $propval = $self->prop("createdate");
--------------------------------------------------------------------------------
