> -----Original Message----- > From: [email protected] On Behalf Of RjOllos > Sent: 17 April 2012 18:29 > To: Trac Users > Subject: [Trac] Workflow restrictions based on group membership > > I'd like to restrict ticket workflow transitions to users of a > specific group. For example, currently I have a step in the workflow > that requires having TICKET_ADMIN permission: > > resolve = implemented -> closed > resolve.operations = set_resolution > resolve.permissions = TICKET_ADMIN > > I'd like to have the permission based on group membership. Only > members of the ticket review board will be able to set the status to > closed. It would look something like this: > > resolve.permissions = @trb > > The reason for the change is that I don't want to give the trb group > TICKET_ADMIN, and there is currently no permission that is unique to > them. I could create a permission using BlackMagicTicketTweaks or > another existing plugin, but the group membership seems like a more > elegant solution.
You do not need an external plugin to create new permissions, check out: http://trac.edgewall.org/wiki/TracPermissions#CreatingNewPrivileges While this is not group membership it will work out-of-the-box... ~ mark c > I was considering adding this as an extension to > VirtualTicketPermissionsPlugin (2), but I was hoping to get some > feedback as to whether this was already possible, and get some > feedback on the proposed feature, though I haven't looked closely at > how to implement this yet. > > (1) http://trac-hacks.org/wiki/BlackMagicTicketTweaksPlugin > (2) http://trac-hacks.org/wiki/VirtualTicketPermissionsPlugin > > -- > 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. > > -- 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.
