When a notification goes out, we need to do a standard 'read' permission check on the artifact. For example, a non-developer could be subscribed to some ticket tool and shouldn't get private ticket notifications. Also an admin could change the permissions of the tool and then the subscriber shouldn't get any more notifications. You can test this by making a user an admin, so they get subscribed, then removing them from admin, then creating a private ticket.
This is needed for migration since we convert sfx project monitoring into notification subscriptions for all tools
Diff:
forge:tv/2998
On sandbox, make user01 an admin on a project. Then create a private ticket. User01 will get an email. Now remove user01 from admin. Update the ticket. User01 will not get an email.
Also added new automated test.