wikimacro._macro_GetVal: bug fix respect ACLs on page
authorReimar Bauer <rb.proj AT googlemail DOT com>
Thu, 30 Aug 2007 12:43:48 +0200
changeset 8454a7de0173734
parent 844 d0152eeb4499
child 847 e74d8f2f0d9b
wikimacro._macro_GetVal: bug fix respect ACLs on page
MoinMoin/wikimacro.py
     1.1 --- a/MoinMoin/wikimacro.py	Tue Aug 28 14:48:30 2007 +0200
     1.2 +++ b/MoinMoin/wikimacro.py	Thu Aug 30 12:43:48 2007 +0200
     1.3 @@ -617,6 +617,8 @@
     1.4  
     1.5      def _macro_GetVal(self, args):
     1.6          page,key = args.split(',')
     1.7 +        if not self.request.user.may.read(page):
     1.8 +            return ""
     1.9          d = self.request.dicts.dict(page)
    1.10          result = d.get(key,'')
    1.11          return self.formatter.text(result)