]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
* Improve handling of edits of locked pages by users who are not yet signed
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 7 May 2007 05:34:55 +0000 (05:34 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 7 May 2007 05:34:55 +0000 (05:34 +0000)
  in.

IkiWiki/Plugin/lockedit.pm
debian/changelog

index 742fd41f65d0cabf963be99e187e0203dbb8c200..82ce1e7be75e2a7a6e0ae70e8a83c776e5068da0 100644 (file)
@@ -21,6 +21,7 @@ sub canedit ($$) { #{{{
 
        foreach my $admin (@{$config{adminuser}}) {
                if (pagespec_match($page, IkiWiki::userinfo_get($admin, "locked_pages"))) {
+                       IkiWiki::needsignin($cgi, $session) unless defined $user;
                        return sprintf(gettext("%s is locked by %s and cannot be edited"),
                                htmllink("", "", $page, noimageinline => 1),
                                IkiWiki::userlink($admin));
index 09ccb42aabb0ec61e12474a62aea291d40b9a9dc..25d36abc54781e61591d692b5f48c570b10ae732 100644 (file)
@@ -5,8 +5,10 @@ ikiwiki (2.1) UNRELEASED; urgency=low
     templates.
   * Make the openid login form nicely styled.
   * Fix a bug that prevented clearing email or subscriptions.
+  * Improve handling of edits of locked pages by users who are not yet signed
+    in.
 
- -- Joey Hess <joeyh@debian.org>  Mon, 30 Apr 2007 18:04:02 -0400
+ -- Joey Hess <joeyh@debian.org>  Mon, 07 May 2007 02:02:53 -0400
 
 ikiwiki (2.00) unstable; urgency=low