Only block from voting if they are banned from the journal or community
the poll is tied to.
Patch by fu.
diffs (13 lines):
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");
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog