I did something just like what you need using jquery. I needed auto-complete, dynamic fields and other stuff that really needs jquery. The way I did this was injecting variables like ticket state, ticket owner, current user in the genshi template, and getting them via jquery. If user wasnt the owner, I just disabled all the fields from the ticket, because in my trac, only the owner could change the ticket. (it was more like a form, using 300+ fields - I used tracforms). That's just a general idea... I also injected something to don't show ticket page of javascript was disabled, it would just show a warning telling the user to enable javascript. The bad side is that it is javascript dependent =(, but it worked.
Regards, Hugo Milhomens On May 17, 2012 5:04 AM, "Lisa" <[email protected]> wrote: > Hi, > > I looked through all the plugins and I can't seem to find a good way to do > this: > I want some general users to be able to comment and create tickets, but > not change them. > I want some "feature lead" users to be able to change the description of > tickets during certain ticket states (new, requested), but not other states > (accepted, implemented, released). I could give them description_edit > permissions, but that gives them permission to edit the description no > matter what the state is. Better yet (but still nice to have), I'd like to > only let them edit the description during those states if they are the > ticket owner. > I want my admins to continue to be able to do everything. > > Any advice? > > Thanks, > Lisa > > -- > You received this message because you are subscribed to the Google Groups > "Trac Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/trac-users/-/DMZOn0ElVGgJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/trac-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
