Ticket #7010: reopen.diff
| File reopen.diff, 1.2 KB (added by tg@…, 4 years ago) |
|---|
-
api.
old new 182 182 # IPermissionRequestor methods 183 183 184 184 def get_permission_actions(self): 185 return ['TICKET_ APPEND', 'TICKET_CREATE', 'TICKET_CHGPROP',185 return ['TICKET_REOPEN', 'TICKET_APPEND', 'TICKET_CREATE', 'TICKET_CHGPROP', 186 186 'TICKET_VIEW', 187 ('TICKET_MODIFY', ['TICKET_ APPEND', 'TICKET_CHGPROP']),187 ('TICKET_MODIFY', ['TICKET_REOPEN', 'TICKET_APPEND', 'TICKET_CHGPROP']), 188 188 ('TICKET_ADMIN', ['TICKET_CREATE', 'TICKET_MODIFY', 189 189 'TICKET_VIEW'])] 190 190 -
web_ui.
old new 657 657 # Add the possible actions to hdf 658 658 actions = TicketSystem(self.env).get_available_actions(ticket, req.perm) 659 659 for action in actions: 660 if action == 'reopen' and not req.perm.has_permission('TICKET_REOPEN'): 661 continue 660 662 req.hdf['ticket.actions.' + action] = '1' 661 663 662 664 def grouped_changelog_entries(self, ticket, db, when=0):
