diff MoinMoin/macro/WantedPages.py @ 1678:20f3ec17cf9f

don't list pages with no read access on WantedPages (ported from 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Nov 2006 16:46:38 +0100
parents fdb726f0f34f
children 6dd2e29acffe
line wrap: on
line diff
--- a/MoinMoin/macro/WantedPages.py	Sun Nov 19 16:44:05 2006 +0100
+++ b/MoinMoin/macro/WantedPages.py	Sun Nov 19 16:46:38 2006 +0100
@@ -43,7 +43,7 @@
         # Add links to pages which does not exists in pages dict
         links = page.getPageLinks(request)
         for link in links:
-            if not link in pages:
+            if not link in pages and request.user.may.read(link):
                 if link in wanted:
                     wanted[link][name] = 1
                 else: