diff --git a/hb_server/apps/wf/services.py b/hb_server/apps/wf/services.py index 2f91c58..7fd7026 100644 --- a/hb_server/apps/wf/services.py +++ b/hb_server/apps/wf/services.py @@ -170,8 +170,10 @@ class WfService(object): return dict(permission=False, msg="非当前处理人", need_accept=False) current_participant_count = len(participant) if current_participant_count == 1: - if [user.id] != participant or user.id != participant: - return dict(permission=False, msg="非当前处理人") + if [user.id] == participant or user.id == participant: + pass + else: + return dict(permission=False, msg="非当前处理人", need_accept=False) elif current_participant_count >1 and state.distribute_type == State.STATE_DISTRIBUTE_TYPE_ACTIVE: if user.id not in participant: return dict(permission=False, msg="非当前处理人", need_accept=False)