|
@@ -232,7 +232,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
var workflow = await GetWorkflowAsync(workflowId, withSteps: true, withCountersigns: true,
|
|
|
cancellationToken: cancellationToken);
|
|
|
|
|
|
- var canHandle = workflow.CanHandle(userId, orgId, roleIds);
|
|
|
+ var canHandle = workflow.IsCanHandle(userId, orgId, roleIds);
|
|
|
var canPrevious = false;
|
|
|
if (canHandle)
|
|
|
{
|
|
@@ -263,7 +263,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
string? orgAreaCode, string? orgAreaName,
|
|
|
CancellationToken cancellationToken)
|
|
|
{
|
|
|
- if (!workflow.CanHandle(_sessionContext.RequiredUserId, _sessionContext.RequiredOrgId, _sessionContext.Roles)) return;
|
|
|
+ if (!workflow.IsCanHandle(_sessionContext.RequiredUserId, _sessionContext.RequiredOrgId, _sessionContext.Roles)) return;
|
|
|
//工单完成以后查看的场景
|
|
|
if (workflow.Status != EWorkflowStatus.Runnable) return;
|
|
|
|
|
@@ -1987,7 +1987,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
|
|
|
private void ValidatePermission(Workflow workflow, string OrgId, string UserId, string[] roleIds)
|
|
|
{
|
|
|
- if (!workflow.CanHandle(UserId, OrgId, roleIds))
|
|
|
+ if (!workflow.IsCanHandle(UserId, OrgId, roleIds))
|
|
|
throw UserFriendlyException.SameMessage("无办理权限");
|
|
|
}
|
|
|
|