don't run check_canedit in nonfatal mode

master
Joey Hess 2010-08-30 15:57:10 -04:00
parent 07f30a288d
commit 7784e0b7b8
1 changed files with 1 additions and 1 deletions

View 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);