Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7592 closed task (worksforme)

Edit permission for the viewing of the mainnav and metanav items specifically

Reported by: matthew@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I have a site that I'm developing for a project. We're using trac in a bit of an off way, in that its public launch won't be as so much of a trac site, but as a wiki for the project. We as the development group however still need to be able to use the majority of the trac functionality. Because of this, our project leader wants the mainnav and metanav disabled from public view, although we will need to be able to use it when logged in. I've been looking through the permissions sections, and while I know that I can enable and disable items to be displayed on the mainnav and metanav, even if I disable all items from view in the main nav, the box for the bar is still visible from the front end, and I do not have access to those once logged in. Is there anyway to set the permissions on those items so that they are only visible when logged in?

Attachments (0)

Change History (2)

comment:1 by ebray, 16 years ago

I would say this is more of a support question—nothing to do in Trac here really that's worth doing. If you want to hide the mainnav from unauthenticated users, you can do that somewhere in your site's custom template with a Genshi match statement. Something like:

<py:match path="div[@id='mainnav']" once="true">
  <div py:if="req.authname and req.authname != 'anonymous'"
       py:attrs="select('@*')" py:content="select('*')" />
</py:match>

comment:2 by Remy Blank, 16 years ago

Resolution: worksforme
Status: newclosed

Erik's above suggestion should allow achieving the desired effect.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.