changeset 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 371e31f8d3fe
children d6b93908e4d9
files MoinMoin/macro/WantedPages.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: