Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#4069 closed enhancement (fixed)

hide pages without WIKI_VIEW privileges

Reported by: olistudent Owned by: gotoh
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 6 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 6 years ago by gotoh

  • Resolution set to fixed
  • Status changed from new to 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 6 years ago by olistudent

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from gotoh. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.