Approval workflow notifications are sent to locked users #1013
This commit is contained in:
parent
1697de4a21
commit
3178690fc6
@ -112,7 +112,7 @@ class DmsfWorkflowsController < ApplicationController
|
||||
else
|
||||
if action.action == DmsfWorkflowStepAction::ACTION_DELEGATE
|
||||
# Delegation
|
||||
delegate = User.find_by(id: params[:step_action].to_i / 10)
|
||||
delegate = User.active.find_by(id: params[:step_action].to_i / 10)
|
||||
if DmsfMailer.get_notify_users(@project, [revision.dmsf_file], true).include?(delegate)
|
||||
DmsfMailer.deliver_workflow_notification(
|
||||
[delegate],
|
||||
|
||||
@ -123,7 +123,7 @@ class DmsfMailer < Mailer
|
||||
notify_files = files.select { |file| file.notify? }
|
||||
return [] if notify_files.empty?
|
||||
end
|
||||
notify_members = project.members.select do |notify_member|
|
||||
notify_members = project.members.active.select do |notify_member|
|
||||
notify_user = notify_member.user
|
||||
if notify_user == User.current && notify_user.pref.no_self_notified
|
||||
false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user