Approval workflow notifications #1566

This commit is contained in:
Karel Pičman 2024-11-25 10:02:21 +01:00
parent be919d2bd7
commit eed5fd91e4

View File

@ -159,9 +159,9 @@ class DmsfWorkflowsController < ApplicationController
assignments.first.dmsf_workflow_step.step != action.dmsf_workflow_step_assignment.dmsf_workflow_step.step
# Next step
assignments.each do |assignment|
next if assignment.user && DmsfMailer.get_notify_users(@project, revision.dmsf_file,
next if assignment.user.nil? || DmsfMailer.get_notify_users(@project, revision.dmsf_file,
force_notification: true)
.include?(assignment.user)
.exclude?(assignment.user)
DmsfMailer.deliver_workflow_notification(
[assignment.user],