From: Joey Hess Date: Mon, 30 Aug 2010 19:44:55 +0000 (-0400) Subject: remove obsolete check to see if check_canedit is available X-Git-Tag: 3.20100831~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=69fc0f427e82c24613a33b005e5fe2422516c001;p=ikiwiki.git remove obsolete check to see if check_canedit is available The function moved from the editpage plugin into IkiWiki core some time ago. --- 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")) {