comparison 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
comparison
equal deleted inserted replaced
1677:371e31f8d3fe 1678:20f3ec17cf9f
41 continue 41 continue
42 42
43 # Add links to pages which does not exists in pages dict 43 # Add links to pages which does not exists in pages dict
44 links = page.getPageLinks(request) 44 links = page.getPageLinks(request)
45 for link in links: 45 for link in links:
46 if not link in pages: 46 if not link in pages and request.user.may.read(link):
47 if link in wanted: 47 if link in wanted:
48 wanted[link][name] = 1 48 wanted[link][name] = 1
49 else: 49 else:
50 wanted[link] = {name: 1} 50 wanted[link] = {name: 1}
51 51