diff MoinMoin/macro/__init__.py @ 2786:a16ba90d1f7e

macro.__init__.py:GetVal bug fixed of respecting acls and test added
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 29 Aug 2007 19:46:01 +0200
parents cdda42a9d8a8
children 8608b258f8e6
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py	Wed Aug 29 17:59:13 2007 +0200
+++ b/MoinMoin/macro/__init__.py	Wed Aug 29 19:46:01 2007 +0200
@@ -392,6 +392,8 @@
 
     def macro_GetVal(self, page=None, key=None):
         page = wikiutil.get_unicode(self.request, page, 'page')
+        if not self.request.user.may.read(page):
+            raise ValueError("You don't have enough rights on this page")
         key = wikiutil.get_unicode(self.request, key, 'key')
         if page is None or key is None:
             raise ValueError("You need to give: pagename, key")