Commit fb3f326d authored by Nick Thomas's avatar Nick Thomas

Fix the AdminEmailsWorker for subgroups and the new active member scope

parent debee4d0
......@@ -15,9 +15,9 @@ class AdminEmailsWorker
when 'all'
User.active.subscribed_for_admin_email
when /group-(\d+)\z/
Group.find($1).users.merge(Member.active).subscribed_for_admin_email
Group.find($1).users_with_descendants.subscribed_for_admin_email
when /project-(\d+)\z/
Project.find($1).team.users.references(:members).merge(Member.active).subscribed_for_admin_email
Project.find($1).authorized_users.active.subscribed_for_admin_email
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment