wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[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;
     }

Tags: bml, livejournal, wisest-owl
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