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.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/69fc0f427e82c24613a33b005e5fe2422516c001?hp=5afd6e0f701d98f1dbb512c11853589c96c9dd0b 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")) {