Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r16132: LJSV-878: fix PollVote restrictions

Committer: ailyin
LJSV-878: fix PollVote restrictions

U   trunk/cgi-bin/LJ/Event/PollVote.pm
Modified: trunk/cgi-bin/LJ/Event/PollVote.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/PollVote.pm	2010-01-25 10:56:22 UTC (rev 16131)
+++ trunk/cgi-bin/LJ/Event/PollVote.pm	2010-01-25 11:07:43 UTC (rev 16132)
@@ -169,8 +169,7 @@
 sub available_for_user  {
     my ($self, $u) = @_;
 
-    return 0 if $self->arg1;
-    return 0 unless LJ::u_equals($u, $self->u);
+    return 0 if $self->arg1 || $self->userid;
 
     return $u->get_cap("track_pollvotes") ? 1 : 0;
 }

Tags: andy, livejournal, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments