On Wednesday, December 3, 2014 1:35:27 PM UTC-8, Aikido Guy wrote:
>
> Hi all,
>
> I'm using apache2 and have a number of Trac projects that I now need to 
> manage. I didn't set everything up, by the way.
>
> In any case, I have found the "Available Projects" page that generates 
> (via a Genshi template) the list of available Trac Projects.
> I also see (from the python code) that there are 4 things available inside 
> "project". e.g. $project.name, $project.env, etc.
>
> Is there any easy way to answer the question in a Genshi template so that 
> I can hide projects not WIKI_VIEWable by the logged on user?
> A "simple" solution would obviously be best in terms of maintainability 
> during the course of Trac upgrades in the future.
>
> Kindly,
> Aikido Guy
>
> PS my knowledge of mod_python is also very new, so trying to combine all 
> of these things is difficult for a beginner like me, so please be kind in 
> your responses :)
>

I'm not sure there is a way to do it, but see this answer:
https://groups.google.com/d/msg/trac-users/S_m1RxlwiIc/-JTLUoG4Ec4J

You could hide the document index and users could navigate among projects 
using this plugin:
http://trac-hacks.org/wiki/ProjectMenuPlugin
However it doesn't do any permissions checking yet, and I'm not sure that 
would be possible with all or any authentication mechanisms.

In general, it seems like you'd have to:
 - Have a single authentication mechanism for all of the projects (i.e. all 
use the same password store)
 - Open each environment and check whether the use has the WIKI_VIEW 
permission in that environment, returning a list of URLs that will be 
rendered to create a project page listing.
... maybe someone else has an idea of whether that could be done.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to