If you look on line 26 of http://trac.edgewall.org/browser/branches/0.11-stable/sample-plugins/ticket_clone.py
<http://trac.edgewall.org/browser/branches/0.11-stable/sample-plugins/ticket_clone.py>The first token is a string literal which is the permission this sample plugin is requesting. If you change 'TICKET_ADMIN' to 'TICKET_MODIFY' then the plugin will require only TICKET_MODIFY permission. You should restart your web server after making this change. On Wed, May 5, 2010 at 11:30 AM, LU Steven Y <[email protected] > wrote: > Erik, > > > > Thank you for your advice. Yes, if I add the TICKET_ADMIN privilege to > authenticated users, they will see the “clone” button. But they will also > have “admin” power to change ticket fields default values. This is not what > I wanted. Is there any way that let user to see clone button, while not > having any admin privilege? > > > > Thanks, > > Steven > > > ------------------------------ > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Erik Andersson > *Sent:* Wednesday, May 05, 2010 1:37 AM > *To:* [email protected] > *Subject:* Re: [Trac] Problem: ticket_clone.py plug in only work for admin > > > > Hi > > > > Are you sure it's TRAC_ADMIN and not TICKET_ADMIN? > > > > See: > http://trac.edgewall.org/browser/branches/0.11-stable/sample-plugins/ticket_clone.py > > > > Depending on how you want to do it, maybe changing to TICKET_MODIFY will > give what you want? > > > > > <http://trac.edgewall.org/browser/branches/0.11-stable/sample-plugins/ticket_clone.py>Cheers > / Erik > > On Tue, May 4, 2010 at 10:23 PM, LU Steven Y <Steven.y.Lu@ > alcatel-lucent.com> wrote: > > Hi, > > Our Trac system has installed plug-in ticket_clone.py by previous admin. > But the "clone" button only displayed for Trac Admin user. Anyone knows > how to make clone button available for all users? > > Thanks, > Steven > -Brad -- 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.
