[prev in list] [next in list] [prev in thread] [next in thread]
List: trac
Subject: [Trac] Re: Can Trac ticket be closed by reporter only?
From: mamamia888 <johnt888 () gmail ! com>
Date: 2018-01-24 22:58:06
Message-ID: ff8c810e-698c-4c23-a8c3-2c7db3574fc3 () googlegroups ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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+unsubscribe@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.
[Attachment #5 (text/html)]
<div dir="ltr">Yup, the new code works ... thanks!<br><br>RjOllos於 \
2018年1月23日星期二 UTC-8下午8時33分20秒寫道:<blockquote \
class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc \
solid;padding-left: 1ex;"><div dir="ltr"><br><br>On Tuesday, January 23, 2018 at \
2:05:01 PM UTC-8, RjOllos wrote:<blockquote class="gmail_quote" \
style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><br><br>On Tuesday, January 23, 2018 at 1:58:36 PM UTC-8, mamamia888 \
wrote:<blockquote class="gmail_quote" \
style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.8px"> Can Trac \
ticket be closed by "reporter" only? Based on what I checked,</span><br \
style="font-family:arial,sans-serif;font-size:12.8px"><span \
style="font-family:arial,sans-serif;font-size:12.8px"> it's only allowed to use \
the permissions(TICKET_MODIFY, etc.) to control.</span><br \
style="font-family:arial,sans-serif;font-size:12.8px"><span \
style="font-family:arial,sans-serif;font-size:12.8px"> If it's possible, could \
you share the information to modify the ticket</span><br \
style="font-family:arial,sans-serif;font-size:12.8px"><span \
style="font-family:arial,sans-serif;font-size:12.8px"> work flow in order to enforce \
it?</span></div></blockquote><div><br></div><div>Similar requests arise fairly often \
so we've added a CookBook entry:</div><div><a \
href="https://trac.edgewall.org/wiki/CookBook/PermissionPolicies#RestrictaWorkflowActiontotheTicketOwner" \
rel="nofollow" target="_blank" \
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Ftrac.edgewal \
l.org%2Fwiki%2FCookBook%2FPermissionPolicies%23RestrictaWorkflowActiontotheTicketOwner \
\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2B4pWimk25ueErWTpbMe-SCEosQ';return \
true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Ftrac.edge \
wall.org%2Fwiki%2FCookBook%2FPermissionPolicies%23RestrictaWorkflowActiontotheTicketOw \
ner\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2B4pWimk25ueErWTpbMe-SCEosQ';return \
true;">https://trac.edgewall.org/<wbr>wiki/CookBook/<wbr>PermissionPolicies#<wbr>RestrictaWorkflowActiontotheTi<wbr>cketOwner</a></div><div><br></div><div>In \
the python code provided on that page, you just need to \
replace:</div><div>ticket['owner'] -> \
ticket['reporter']</div><div><br></div><div>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.</div><div><br></div><div>- \
Ryan</div></div></blockquote><div><br></div><div>Page updated:</div><div><a \
href="https://trac.edgewall.org/wiki/CookBook/PermissionPolicies?action=diff&version=16" \
target="_blank" rel="nofollow" \
onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Ftrac.edgewal \
l.org%2Fwiki%2FCookBook%2FPermissionPolicies%3Faction%3Ddiff%26version%3D16\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0dOQ2xXH8zd8GCDEBpKpev32fmg';return \
true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Ftrac.edge \
wall.org%2Fwiki%2FCookBook%2FPermissionPolicies%3Faction%3Ddiff%26version%3D16\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE0dOQ2xXH8zd8GCDEBpKpev32fmg';return \
true;">https://trac.edgewall.org/<wbr>wiki/CookBook/<wbr>PermissionPolicies?action=<wbr>diff&version=16</a><br></div><div><br></div><div>- \
Ryan </div></div></blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "Trac \
Users" group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To post to this group, send email to <a \
href="mailto:trac-users@googlegroups.com">trac-users@googlegroups.com</a>.<br /> \
Visit this group at <a \
href="https://groups.google.com/group/trac-users">https://groups.google.com/group/trac-users</a>.<br \
/> For more options, visit <a \
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br \
/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic