Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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 8 years ago by izzy

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 ;)

comment:2 Changed 8 years ago by Shun-ichi Goto

Resolution: fixed
Status: newclosed

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 8 years ago by Oliver Metz

Yeah, it works. And this new language menu is really cool. Thank you.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Shun-ichi Goto.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.