Commit fb3f326d authored by Nick Thomas's avatar Nick Thomas
Browse files

Fix the AdminEmailsWorker for subgroups and the new active member scope

parent debee4d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,9 +15,9 @@ def recipient_list(recipient_id)
    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