[livejournal] r18029: LJSUP-6868. Fix error

Committer: gprochaev
LJSUP-6868. Fix error

U   trunk/htdocs/poll/index.bml
Modified: trunk/htdocs/poll/index.bml
===================================================================
--- trunk/htdocs/poll/index.bml	2011-01-14 10:00:12 UTC (rev 18028)
+++ trunk/htdocs/poll/index.bml	2011-01-14 10:25:09 UTC (rev 18029)
@@ -73,7 +73,8 @@
         return;
     }
 
-    unless ($is_super || (!$is_super && !$entry->visible_to($remote))) {
+    my $sm_u = LJ::load_userid($is_super);
+    unless (($sm_u && $remote->can_manage($sm_u)) || $entry->visible_to($remote)) {
         $body = $ML{'.error.cantview'};
         return;
     }