diff options
author | Joey Hess <joey@kitenet.net> | 2010-08-30 15:44:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-08-30 15:44:55 -0400 |
commit | 69fc0f427e82c24613a33b005e5fe2422516c001 (patch) | |
tree | d76a00f65154114be26e7a0a1ce4e638a7c88f72 | |
parent | 5afd6e0f701d98f1dbb512c11853589c96c9dd0b (diff) | |
download | ikiwiki-69fc0f427e82c24613a33b005e5fe2422516c001.tar ikiwiki-69fc0f427e82c24613a33b005e5fe2422516c001.tar.gz |
remove obsolete check to see if check_canedit is available
The function moved from the editpage plugin into IkiWiki core some time
ago.
-rw-r--r-- | IkiWiki/Receive.pm | 6 |
1 files 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")) { |