From 69fc0f427e82c24613a33b005e5fe2422516c001 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 30 Aug 2010 15:44:55 -0400 Subject: [PATCH 1/1] remove obsolete check to see if check_canedit is available The function moved from the editpage plugin into IkiWiki core some time ago. --- IkiWiki/Receive.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IkiWiki/Receive.pm b/IkiWiki/Receive.pm index fdd463025..d116049c4 100644 --- a/IkiWiki/Receive.pm +++ b/IkiWiki/Receive.pm @@ -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")) { -- 2.39.5