Edgewall Software

Ticket #3580: ticket-3580-v1.patch

File ticket-3580-v1.patch, 819 bytes (added by ecarter, 14 months ago)

proposed solution

  • trac/ticket/default_workflow.py

     
    244244            if this_action.has_key('set_owner'): 
    245245                owners = [x.strip() for x in 
    246246                          this_action['set_owner'].split(',')] 
     247            elif this_action.has_key('set_owner_perm'): 
     248                perm = PermissionSystem(self.env) 
     249                owners = perm.get_users_with_permission(this_action['set_owner_perm'].strip()) 
     250                owners.sort() 
    247251            elif self.config.getbool('ticket', 'restrict_owner'): 
    248252                perm = PermissionSystem(self.env) 
    249253                owners = perm.get_users_with_permission('TICKET_MODIFY')