Changeset 10651 in trac.svn


Ignore:
Timestamp:
Mar 16, 2011, 11:34:45 PM (13 years ago)
Author:
ecarter
Message:

sandbox: Ticket #3580: core change to make the set_owner permission configurable in the workflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/ticket-3580/trac/ticket/default_workflow.py

    r10401 r10651  
    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)
Note: See TracChangeset for help on using the changeset viewer.