Correction : check_canedit() .
authorJulien Moutinho <julm+ikiwiki+poll@autogeree.net>
Fri, 14 Mar 2014 20:27:25 +0000 (21:27 +0100)
committerJulien Moutinho <julm+ikiwiki+poll@autogeree.net>
Fri, 14 Mar 2014 20:27:25 +0000 (21:27 +0100)
poll.pm

diff --git a/poll.pm b/poll.pm
index b79fd0e..f5bb0d1 100644 (file)
--- a/poll.pm
+++ b/poll.pm
@@ -187,6 +187,7 @@ sub sessioncgi ($$) {
                        use Data::Dumper;
                        error("bad page name");
                 }
+               &IkiWiki::check_canedit($page, $cgi, $session);
                
                # Did they vote before? If so, let them change their vote,
                # and check for dups.