aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-07 16:10:32 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-07 16:10:32 -0500
commit45de8dc710bf5844ed99514342bade439c396084 (patch)
treede7920d03c184bfa8b1b19c839bec9a0bbf4f256
parent9dbbbd0efacb5acebaed2d0ee74d1c185b27394a (diff)
downloadikiwiki-45de8dc710bf5844ed99514342bade439c396084.tar
ikiwiki-45de8dc710bf5844ed99514342bade439c396084.tar.gz
* opendiscussion: allow editing of the toplevel discussion page
-rw-r--r--IkiWiki/Plugin/opendiscussion.pm2
-rw-r--r--debian/changelog1
2 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm
index fd5c9673d..c835f0106 100644
--- a/IkiWiki/Plugin/opendiscussion.pm
+++ b/IkiWiki/Plugin/opendiscussion.pm
@@ -15,7 +15,7 @@ sub canedit ($$) { #{{{
my $session=shift;
my $discussion=gettext("discussion");
- return "" if $page=~/\/\Q$discussion\E$/;
+ return "" if $page=~/(\/|^)\Q$discussion\E$/;
return undef;
} #}}}
diff --git a/debian/changelog b/debian/changelog
index b39b053d4..58dafaa3a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ikiwiki (2.19) UNRELEASED; urgency=low
* Only try postsignin if no other action matched. Fixes a bug where the
user goes back from the signin screen and does something else.
* Improve behavior when trying to sign in with no cookies.
+ * opendiscussion: allow editing of the toplevel discussion page
-- Joey Hess <joeyh@debian.org> Mon, 07 Jan 2008 15:35:16 -0500