Modify ↓
#4069 closed enhancement (fixed)
hide pages without WIKI_VIEW privileges
Reported by: | Oliver Metz | Owned by: | Shun-ichi Goto |
---|---|---|---|
Priority: | normal | Component: | TracWikiNegotiatorPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
It would be nice if MultiLangTitleIndexMacro would hide Pages from Index without sufficient privileges for the current user. This is already implemented in original TitleIndexMacro and should be easily to port...
snippet from wiki/macros.py:
wiki = formatter.wiki pages = sorted([page for page in wiki.get_pages(prefix) \ if 'WIKI_VIEW' in formatter.perm('wiki', page)])
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ah, yes. That code is included when grouping support. So I close this. Feel free to reopen if not worked correctly.
BTW, The component enabling issue is added in plugin page as notice. It is a trap for users who enabled indivisual components via admin panel. If you enabled by wildcard, no warry.
comment:3 Changed 16 years ago by
Yeah, it works. And this new language menu is really cool. Thank you.
Note: See
TracTickets for help on using
tickets.
Guess this has been done a few revisions ago? At least it is part of the current code? So this ticket could be closed ;)
Oliver: Just check out the current version. After installing it, enable the wikinegotiatormenubar (admin->plugins). Optionally set the menu_style to ctxnav. That's something we missed a lot - and it's working now since a few hours ;)