add check to start work on next task notification if recent changes notification is switched off

This commit is contained in:
mlorb 2018-02-13 11:01:45 +01:00
parent 027297d46a
commit 8d0ac93c80

View file

@ -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