changeset 4845:916c28ef9026

Groups2009: Bug fix. Access to the group page do not cause infinite recursion.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 11 Jul 2009 12:33:57 +0200
parents 193bbbdd0ace
children 982f706482e7
files MoinMoin/datastruct/backends/wiki_groups.py
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/datastruct/backends/wiki_groups.py	Sat Jul 11 12:33:43 2009 +0200
+++ b/MoinMoin/datastruct/backends/wiki_groups.py	Sat Jul 11 12:33:57 2009 +0200
@@ -62,6 +62,18 @@
     def _retrieve_members(self, group_name):
         formatter = Formatter(self.request)
         page = Page(self.request, group_name, formatter=formatter)
-        page.send_page(content_only=True)
+        # send_special is set to True because acl of the page should
+        # not be processed to avoid infinite recursion in the
+        # following case.
+        #
+        # Consider page UserGroup content:
+        #
+        # #acl UserGroup:read,write,admin All:read
+        #
+        #  * ExampleUser
+        #  * TestGroup
+        #
+        page.send_page(content_only=True, send_special=True)
+
         return formatter.members