Yup, the new code works ... thanks!

RjOllos於 2018年1月23日星期二 UTC-8下午8時33分20秒寫道:
>
>
>
> On Tuesday, January 23, 2018 at 2:05:01 PM UTC-8, RjOllos wrote:
>>
>>
>>
>> On Tuesday, January 23, 2018 at 1:58:36 PM UTC-8, mamamia888 wrote:
>>>
>>>  Can Trac ticket be closed by "reporter" only? Based on what I checked,
>>>  it's only allowed to use the permissions(TICKET_MODIFY, etc.) to 
>>> control.
>>>  If it's possible, could you share the information to modify the ticket
>>>  work flow in order to enforce it?
>>>
>>
>> Similar requests arise fairly often so we've added a CookBook entry:
>>
>> https://trac.edgewall.org/wiki/CookBook/PermissionPolicies#RestrictaWorkflowActiontotheTicketOwner
>>
>> In the python code provided on that page, you just need to replace:
>> ticket['owner'] -> ticket['reporter']
>>
>> Let me know if anything is unclear. I will modify the page later today to 
>> describe how to enforce the permission policy for reporter rather than 
>> owner.
>>
>> - Ryan
>>
>
> Page updated:
>
> https://trac.edgewall.org/wiki/CookBook/PermissionPolicies?action=diff&version=16
>
> - 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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
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