mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 14:41:53 +08:00
add check to start work on next task notification if recent changes notification is switched off
This commit is contained in:
parent
027297d46a
commit
8d0ac93c80
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class MyModulesController < ApplicationController
|
||||||
)
|
)
|
||||||
# create notification for all users on the next modules in the workflow
|
# create notification for all users on the next modules in the workflow
|
||||||
@my_module.my_modules.map(&:users).flatten.uniq.each do |target_user|
|
@my_module.my_modules.map(&:users).flatten.uniq.each do |target_user|
|
||||||
next if target_user == current_user
|
next if target_user == current_user || !target_user.recent_notification
|
||||||
UserNotification.create(notification: notification, user: target_user)
|
UserNotification.create(notification: notification, user: target_user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue