remove obsolete check to see if check_canedit is available
authorJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 19:44:55 +0000 (15:44 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 19:44:55 +0000 (15:44 -0400)
The function moved from the editpage plugin into IkiWiki core some time
ago.

IkiWiki/Receive.pm

index fdd463025457f918458168a2671f7c97dd2a37ab..d116049c49c2bbd33b33d7a7dca6bfdc6b48aa57 100644 (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")) {