call check_canedit

Needed to prevent uploads of locked pages as attachments.
master
Joey Hess 2008-07-01 13:20:42 -04:00
parent cec45b69da
commit dbf23748dd
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ sub formbuilder (@) { #{{{
}
}
# Also check that the user is allowed to edit it by other
# policies.
IkiWiki::check_canedit($filename, $q, $params{session}, 1);
# Move the attachment into place.
# Try to use a fast rename; fall back to copying.
prep_writefile($filename, $config{srcdir});