From 36924b43adb893f148e12a999fc3242bbf79044c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 30 Sep 2021 16:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8D=95=E4=B9=8B=E5=90=8E=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wf/services.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)