aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-06 16:19:17 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-06 16:19:17 -0500
commitb384af237df92e787f84f845d0d2bc182f7775ff (patch)
treeaba9caff584e7b5a87d63c8483ab01f36c88bc8d /IkiWiki
parente33a65719a58a65201c1c742f544f5cab38ad23c (diff)
downloadikiwiki-b384af237df92e787f84f845d0d2bc182f7775ff.tar
ikiwiki-b384af237df92e787f84f845d0d2bc182f7775ff.tar.gz
opendiscussion: This plugin will also now allow posting comments
to otherwise locked-down sites.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/opendiscussion.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm
index 4b91f5d83..5a455940b 100644
--- a/IkiWiki/Plugin/opendiscussion.pm
+++ b/IkiWiki/Plugin/opendiscussion.pm
@@ -25,6 +25,7 @@ sub canedit ($$) {
my $session=shift;
return "" if $page=~/(\/|^)\Q$config{discussionpage}\E$/i;
+ return "" if pagespec_match($page, "postcomment(*)");
return undef;
}