Skip to content

Commit

Permalink
bugfix: ticket transitons api return -1 code when has no permission
Browse files Browse the repository at this point in the history
  • Loading branch information
guiji authored and guiji committed Jun 26, 2019
1 parent a9fe17c commit 94eea06
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 @@ -835,7 +835,7 @@ def ticket_handle_permission_check(cls, ticket_id, username, by_timer=False, by_
ticket_state_id = ticket_obj.state_id
transition_queryset, msg = WorkflowTransitionService.get_state_transition_queryset(ticket_state_id)
if not transition_queryset:
return False, '工单当前状态无需操作'
return None, '工单当前状态无需操作'
state_obj, msg = WorkflowStateService.get_workflow_state_by_id(ticket_state_id)
if not state_obj:
return False, '工单当前状态id不存在或已被删除'
Expand Down

0 comments on commit 94eea06

Please sign in to comment.