remove obsolete check to see if check_canedit is available

The function moved from the editpage plugin into IkiWiki core some time
ago.
master
Joey Hess 2010-08-30 15:44:55 -04:00
parent 5afd6e0f70
commit 69fc0f427e
1 changed files with 2 additions and 4 deletions

View File

@ -95,10 +95,8 @@ sub test () {
if ($change->{action} eq 'change' ||
$change->{action} eq 'add') {
if (defined $page) {
if (IkiWiki->can("check_canedit")) {
IkiWiki::check_canedit($page, $cgi, $session);
next;
}
IkiWiki::check_canedit($page, $cgi, $session);
next;
}
else {
if (IkiWiki::Plugin::attachment->can("check_canattach")) {