mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-08-23 13:06:48 +08:00
fix issue #I3M9L9
This commit is contained in:
parent
3821a2f111
commit
65e42ed2c3
@ -154,6 +154,13 @@ namespace OpenAuth.App
|
||||
public bool NodeVerification(string instanceId, Tag tag)
|
||||
{
|
||||
FlowInstance flowInstance = Get(instanceId);
|
||||
|
||||
var user = _auth.GetCurrentUser().User;
|
||||
if (flowInstance.MakerList != "1" && !flowInstance.MakerList.Contains(user.Id))
|
||||
{
|
||||
throw new Exception("当前用户没有审批该节点权限");
|
||||
}
|
||||
|
||||
FlowInstanceOperationHistory flowInstanceOperationHistory = new FlowInstanceOperationHistory
|
||||
{
|
||||
InstanceId = instanceId,
|
||||
@ -290,8 +297,11 @@ namespace OpenAuth.App
|
||||
public bool NodeReject(VerificationReq reqest)
|
||||
{
|
||||
var user = _auth.GetCurrentUser().User;
|
||||
|
||||
FlowInstance flowInstance = Get(reqest.FlowInstanceId);
|
||||
if (flowInstance.MakerList != "1" && !flowInstance.MakerList.Contains(user.Id))
|
||||
{
|
||||
throw new Exception("当前用户没有驳回该节点权限");
|
||||
}
|
||||
|
||||
FlowRuntime wfruntime = new FlowRuntime(flowInstance);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user