Just use check_canedit in nonfatal mode.
if ($change->{action} eq 'change' ||
$change->{action} eq 'add') {
if (defined $page) {
- IkiWiki::check_canedit($page, $cgi, $session);
- next;
+ next if IkiWiki::check_canedit($page, $cgi, $session, 1);
}
else {
if (IkiWiki::Plugin::attachment->can("check_canattach")) {
setup. (intrigeri)
* t/bazaar.t: Work around bzr 2.2.0's new requirement to configure
bzr whoami before committing.
+ * Avoid trying to log the user in when receiving anonymous pushes
+ from git and a plugin like httpauth returns a login function.
-- Joey Hess <joeyh@debian.org> Sun, 15 Aug 2010 11:45:48 -0400
So, all these calls need to avoid running the error handler
functions returned by canedit hooks, and just return error
-messages.
+messages. [[done]] --[[Joey]]