Bug #20084
closedEmail notification - Sync errata - email should be send to only those users who belongs/access to the organization
Description
Steps to Reproduce:
1. Create User "User-A" in Organization-A and select "syn errata" in My Account
[root@dsatellite ~]# hammer user info --login ranjan
Id: 5
Login: usera
Email: usera@redhat.com
Organizations:
Organization-A
2. Create User "User-B" in Organization-B and select "syn errata" in My Account
[root@satellite ~]# hammer user info --login admin
Id: 3
Login: userb
Email: userb@gmail.com
Organizations:
Organization-B
3. Start any repository sync in Organization-A
4. Now Observed that User-B also get a mail even the userb is not a part of Organization-A
Sent mail to userb@gmail.com (3968.5ms)
2017-06-22 11:36:29 [app] [D] Date: Thu, 22 Jun 2017 11:36:25 +0530
| From: satellite@example.com
| To: userb@gmail.com
| Subject: [satellite] Sync Summary for Red Hat Enterprise Linux 7 Server RPMs