From: Joey Hess Date: Mon, 30 Aug 2010 19:57:10 +0000 (-0400) Subject: don't run check_canedit in nonfatal mode X-Git-Tag: 3.20100831~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7784e0b7b89d2330f507e04fd15dc04027f1eeaf;p=ikiwiki.git don't run check_canedit in nonfatal mode --- diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index ee105a170..f73e355ee 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -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);