Workflow-specific permissions

21 views
Skip to first unread message

Lisa

unread,
May 17, 2012, 2:17:58 AM5/17/12
to trac-...@googlegroups.com
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

Hugo Milhomens

unread,
May 17, 2012, 7:19:41 AM5/17/12
to trac-...@googlegroups.com

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

--
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 trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

jingda wang

unread,
May 18, 2012, 1:43:13 AM5/18/12
to trac-...@googlegroups.com
Hi

Is it possible to install different versions of trac in the same
computer and both version has a project in side? and do not disturb
each other?

Cooke, Mark

unread,
May 18, 2012, 4:25:48 AM5/18/12
to trac-...@googlegroups.com
Why would you want to do that? If you are developing something then take a look at:-

http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup

...otherwise perhaps you could explain a bit more about what you are trying to achieve and why.

~ mark c

Olaf Meeuwissen

unread,
May 18, 2012, 5:46:54 AM5/18/12
to trac-...@googlegroups.com
"Cooke, Mark" <mark....@siemens.com> writes:

>> -----Original Message-----
>> From: trac-...@googlegroups.com On Behalf Of jingda wang
>> Sent: 18 May 2012 06:43
>> To: trac-...@googlegroups.com
>> Subject: Re: [Trac] Workflow-specific permissions
>>
>> Hi
>>
>> Is it possible to install different versions of trac in the same
>> computer and both version has a project in side? and do not disturb
>> each other?
>>
> Why would you want to do that?

Conflicting requirements for the plugins used by the various projects?
Separation of access privileges to project data?

Just some thoughts,
--
Olaf Meeuwissen, LPIC-2 FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962 Help support software freedom
http://www.fsf.org/jf?referrer=1962

jingda wang

unread,
May 18, 2012, 12:48:44 PM5/18/12
to trac-...@googlegroups.com
Because the project under old version (0.11) are in use, and the
update(0.12 or 13) will change the layout right? The designing of new
version uses some new feature in 0.12. so I wonder that if it is
possible to have different version under the same system

2012/5/18 Olaf Meeuwissen <olaf.me...@avasys.jp>:
> --
> You received this message because you are subscribed to the Google Groups "Trac Users" group.

Cooke, Mark

unread,
May 21, 2012, 5:20:04 AM5/21/12
to trac-...@googlegroups.com
> Because the project under old version (0.11) are in use, and the
> update(0.12 or 13) will change the layout right? The designing of new
> version uses some new feature in 0.12. so I wonder that if it is
> possible to have different version under the same system
>
I upgraded our projects from 0.11 to 0.12 and I do not remember having many problems. It may depend on how many projects you have and more importantly on the plugins that you have installed (i.e. if the plugins work with 0.12 or have a version that does). We do not use many plugins.

I am not sure what you mean by "change the layout" ~ there were a few cosmetic enhancements but nothing that caused any problems for me or my users.

I would recommend you try out an offline upgrade of a few projects rather than invest time in supporting the old version in parallel.

Good luck,

~ mark c

Jingda Wang

unread,
May 21, 2012, 7:54:34 AM5/21/12
to trac-...@googlegroups.com
Hi Mark, Thanks for your advice! I will try !

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages