mantisbt/mantisbt — pull request #520 by vboctor (2014-10-25 05:12:39+00:00)
Title: Relationship emails disclose related issue

If a user has access to an issue and a related issue is added/deleted that the user has no access to, the user still gets a notification.

For email notifications in general, when constructing visible data checks need to take into consideration the user the email is being constructed to, rather than the current user. Since some APIs may check against current user, use override.

TODO: This is a tricky bug, so I decided to post the proposal for review and if we get agreement on it, then I'll do the testing.

Fixes #9885