From 430ae8c3772a8184ecd23c449746d24b5731ac86 Mon Sep 17 00:00:00 2001 From: wintel Date: Sat, 8 Mar 2025 15:54:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#IBRS0G=20=E6=B5=81=E7=A8=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=8F=8A=E5=AE=A1=E6=89=B9=E7=95=8C=E9=9D=A2=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/FlowInstance/FlowInstanceApp.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/OpenAuth.App/FlowInstance/FlowInstanceApp.cs b/OpenAuth.App/FlowInstance/FlowInstanceApp.cs index 85c5b826..6128cb17 100644 --- a/OpenAuth.App/FlowInstance/FlowInstanceApp.cs +++ b/OpenAuth.App/FlowInstance/FlowInstanceApp.cs @@ -634,6 +634,22 @@ namespace OpenAuth.App //最后一个审批人是当前用户,可以撤销 resp.CanUndoVerify = query.CreateUserId == user.User.Id; } + + var approvers = _flowApproverApp.GetApproverIds(new QueryApproverReq + { + FlowInstanceId = id, + ActivityId = flowinstance.ActivityId + }); + + if (flowinstance.MakerList != "1" && !flowinstance.MakerList.Contains(user.User.Id) && + !approvers.Contains(user.User.Id)) + { + resp.CanVerify = false; + } + else + { + resp.CanVerify = true; //当前登录用户可以审批当前流程 + } return resp; }