changeset 1882:b5a68f95a5a3

Page: acl bug fixed
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 12 Mar 2007 20:54:08 +0100
parents f96a8fa611e8
children 4f867b7cbfde
files MoinMoin/Page.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Mon Mar 12 20:24:44 2007 +0100
+++ b/MoinMoin/Page.py	Mon Mar 12 20:54:08 2007 +0100
@@ -1506,6 +1506,9 @@
             lastRevision = self.getRevList()[0]
         except IndexError:
             return security.AccessControlList(self.request.cfg)
+        if self.rev == lastRevision:
+            return self.pi['acl']
+
         return Page(self.request, self.page_name, rev=lastRevision).parseACL()
 
     def clean_acl_cache(self):