Skip to content

Commit

Permalink
bugfix: ticket's transition api return wrong format result when user …
Browse files Browse the repository at this point in the history
…has no permission to handle the ticket
  • Loading branch information
blackholll committed Aug 9, 2020
1 parent 8f8d401 commit 0d858a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/ticket/ticket_base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ def get_ticket_transition(cls, ticket_id: int, username: str)->tuple:
return False, result

if not result.get('permission'):
return True, dict(result=[], msg=result.get('msg'))
return True, dict(transition_dict_list=[], msg=result.get('msg'))

ticket_obj = TicketRecord.objects.filter(id=ticket_id).first()

Expand Down

0 comments on commit 0d858a2

Please sign in to comment.