diff options
author | Joey Hess <joey@kitenet.net> | 2010-08-30 15:57:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-08-30 15:57:10 -0400 |
commit | 7784e0b7b89d2330f507e04fd15dc04027f1eeaf (patch) | |
tree | c45b7be19fc674be7f66fb8f232427fd27f931b9 /IkiWiki | |
parent | 07f30a288d752b3ffd7cbabf1fbc10309364b4e2 (diff) | |
download | ikiwiki-7784e0b7b89d2330f507e04fd15dc04027f1eeaf.tar ikiwiki-7784e0b7b89d2330f507e04fd15dc04027f1eeaf.tar.gz |
don't run check_canedit in nonfatal mode
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/attachment.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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); |