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

[livejournal] r18250: LJSUP-7914. User lj_elections must see e...

Committer: gprochaev
LJSUP-7914. User lj_elections must see election polls. But can't vote.

U   trunk/htdocs/poll/index.bml
Modified: trunk/htdocs/poll/index.bml
===================================================================
--- trunk/htdocs/poll/index.bml	2011-02-10 03:25:06 UTC (rev 18249)
+++ trunk/htdocs/poll/index.bml	2011-02-10 03:45:56 UTC (rev 18250)
@@ -51,8 +51,8 @@
     if ($poll->is_owner($remote)) {
         if ($FORM{'mode'} =~ /(close|open)/) {
             $mode = $FORM{'mode'};
-            $poll->close_poll if ($mode eq 'close');
-            $poll->open_poll if ($mode eq 'open');
+            $poll->close_poll if ($mode eq 'close' && !$is_super);
+            $poll->open_poll if ($mode eq 'open' && !$is_super);
             $mode = 'results' ;
         }
     }

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