Opened 11 years ago
Closed 11 years ago
#6842 closed defect (bug) (fixed)
Private Group @mention notifications should not go to non group members
| Reported by: | timeuser | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | Activity | Version: | 2.4.0 |
| Severity: | normal | Keywords: | needs-patch needs-unit-tests |
| Cc: |
Description
Posts in groups cause notification emails to be sent to all users @mentioned in the post. Notification emails should not be sent to @mentioned users that are not a member of the group if the group is private or hidden.
Change History (7)
#2
@
11 years ago
- Component API → Component - Activity
- Milestone Awaiting Review → 2.5
Good catch! Something along the lines of your fix will work - I'll rewrite it to keep some separation between our components.
#5
@
11 years ago
What if a user is an admin? It would be nice if they still received the notification in that case even if they are not a member. Technically they can view the posts anyway and our users are in the habit of @mentioning admin users for help.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
How do I submit a patch for this? I think it can be fixed by checking if user is a member of the group in bp_activity_filters.php function bp_activity_at_name_send_emails()
Insert at line #341 in bp_activity_filters.php