On Monday, June 13, 2016 at 8:22:20 AM UTC-7, Andy wrote: > > I've used TagPublicPlugin in a previous Trac and wanted to use the same > functionality in my new Trac (Bitnami Trac 1.0.1). > > The TagPublicPlugin page says it has been deprecated by the TagsPolicy of > TapsPlugin. > > The latter *seems* to refer to the possibility of adding/removing > permissions from a page using the plugin, but I can't see an actual example > of doing this. > > In my case we have a 'public' Trac that we want third-parties to access to > raise tickets - they will need to be authenticated and *generally* they > shouldn't see any other part of Trac. However, there are a number of wiki > pages that we might want to make available e.g. the landing page, > instructions, etc. I hoped to be able to achieve this by 'giving' wiki_view > privilege to authenticated users on certain pages through the tagging > system. > > I've looked for a wiki/howto but other than a reference to a discussion > list that I couldn't find I've been unable to find any further information. > > Has anyone done this? If so, how? > > Thanks, > > -- > Andy >
I haven't tested, but it looks like you need to add TagPolicy as the first entry in the list of [trac] permission_policies, or possibly as the second entry if you are using AuthzPolicy. https://trac.edgewall.org/wiki/TracIni#trac-section You could then grant WIKI_VIEW to all authenticated users by adding the tag: authenticated:view. The general pattern is user_or_group:action, where action is the suffix of the permission name: WIKI_VIEW -> view, WIKI_MODIFY -> modify, WIKI_DELETE -> delete, ... You can negate the permission with a dash: somegroup:-modify, somegroup:-view, ... If you can confirm the behavior works, maybe we can add some documentation to the page: https://trac-hacks.org/wiki/TagsPlugin#Installation - Ryan -- 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 https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
