move check_canedit, check_content to IkiWiki library from editpage
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 12 Feb 2009 21:31:05 +0000 (16:31 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 12 Feb 2009 21:33:35 +0000 (16:33 -0500)
commit2c51b18aec0cebd1a433cb541fe80f8ade7b3936
tree575b6ab25cb3ff52b7c12311f4a56f5fa5f1d2cf
parentc0405e0f20e49c382b656bf9c83c4dd1aa0fc187
move check_canedit, check_content to IkiWiki library from editpage

It no longer makes sense to keep these functions in editpage, because
serveral plugins now exist that use them, and users may want to disable
editpage, while leaving those plugins enabled.

Most notably, comments uses both functions, and it's entirely appropriate
to disable editpage but still want to have comments enabled.

Less likely, attachments, rename, and remove all use check_canedit -- but
it would be unusual indeed to want to use these w/o editpage.
IkiWiki.pm
IkiWiki/Plugin/editpage.pm
debian/changelog