On Tuesday, 14 June 2016 01:33:52 UTC+1, RjOllos wrote:
>
>
>
> 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
>

If I put the TagPolicy anywhere other than last then I get a "Tags are not 
supported on the 'attachment' realm" when I go to a tagged page.

When TagPolicy is in last position it 'almost' seems to work i.e. I can tag 
the landing page (WikiStart) with "anonymous:VIEW" and users can then see 
that page - but I can't successfully set two tags e.g. I need "anonymous" 
and "thirdparty" groups to be given 'VIEW' to the landing page. When I try 
this the thirdparty group is ignored - i.e. "anonymous:VIEW 
thirdparty:VIEW" and "thirdparty:VIEW" both fail to allow the thirdparty 
access. Pehaps its just an issue with the non-Trac default groups?

Thanks for your help,

-- 
Andy

>  
>

-- 
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.

Reply via email to