* opendiscussion: allow editing of the toplevel discussion page
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 7 Jan 2008 21:10:32 +0000 (16:10 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 7 Jan 2008 21:10:32 +0000 (16:10 -0500)
IkiWiki/Plugin/opendiscussion.pm
debian/changelog

index fd5c9673d68c3581722dbe41502d0363d502a5ac..c835f01061ea8a5364d369b768ebbada2fb6acfd 100644 (file)
@@ -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;
 } #}}}
 
index b39b053d4ec9ef9c34e7239b2cfd79b63861a6fd..58dafaa3a62013295367a74d0acbb10d0b5d5044 100644 (file)
@@ -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