-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 14.02.2013 18:43, jdube wrote:
> I've looked everywhere for a solution for my issue and it seem that no
> one actually have it...
>
> Here is my issue : the Wikis of my intranet's tracs have some sensible
> datas, but the WikiStart page show an overview of my projects - which I
> want anonymous user to see. So, I used TracFineGrainedPermissions to
> allow access to anonymous user to only the WikiStart start page and it's
> child page (WikiStart/Child...). Everything work fine and as intended :
> anonymous can only see what I want from the wiki and I don't have to
> micro manage all pages (see policy below). However, the "Wiki" link from
> the navigation bar disappears when the user is anonymous.
>
=======8<-------------
>
> What should I do to force Trac to always show the Wiki navigation menu?
Not much without doing tricks or changing core code (not recommended).
Actually the source has this test in trac.wiki.web_ui for the
INavigationContributor method 'get_navigation_items' [1], that is
responsible for providing the nav bar entry:
if 'WIKI_VIEW' in req.perm('wiki')
(Note though, that I linked to an old version, but this code is still in
place almost unchanged even in current stable Trac 1.0 so far.
Consequently you won't get the entry while restricting VIEW permission
in general, that is exactly what you do, right?
You could roll a custom nav item replacement, i.e. have a look at the
NavAddPlugin [2].
Steffen Hoffmann
[1] http://trac.edgewall.org/browser/tags/trac-0.11/trac/wiki/web_ui.py#L82
[2] http://trac-hacks.org/wiki/NavAddPlugin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlEeN84ACgkQ31DJeiZFuHdkFQCbBtW4hS8cxSJWwabVzvxE77sY
gesAn2okJv0h+Jx4FvoQGNsGjfM0/T4I
=4Ovr
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.