don't run check_canedit in nonfatal mode
authorJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 19:57:10 +0000 (15:57 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 19:57:10 +0000 (15:57 -0400)
IkiWiki/Plugin/attachment.pm

index ee105a1709f3fe71e0e44a47782e9596791dbbf9..f73e355ee3ecf49a005b1b31f8ca8567427998e6 100644 (file)
@@ -146,7 +146,7 @@ sub formbuilder (@) {
                
                # Check that the user is allowed to edit a page with the
                # name of the attachment.
-               IkiWiki::check_canedit($filename, $q, $session, 1);
+               IkiWiki::check_canedit($filename, $q, $session);
                # And that the attachment itself is acceptable.
                check_canattach($session, $filename, $tempfile);