Seperated the check for bypassable approvals.

This commit is contained in:
Colin Dawson 2026-03-15 23:17:27 +00:00
parent a12731142c
commit 028f40437e

View File

@ -214,10 +214,14 @@ public class WorkflowProcessor : IWorkflowProcessor
Role = typedAssignee.Role!,
User = typedAssignee.User!,
};
if (typedAssignee is IBypassable bypassableAssignee)
{
activityAssignment.Bypassable = bypassableAssignee.Bypassable;
}
if (typedAssignee is IApprovalTaskAssignee approvalAssignee)
{
activityAssignment.Bypassable = approvalAssignee.Bypassable;
activityAssignment.AllowNoVerdict = approvalAssignee.AllowNoVerdict;
}