Opened 9 years ago
Closed 8 years ago
#7011 closed defect (bug) (no action required)
Multisite - deleted users not removed from groups
Reported by: | rogercoathup | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: | roger@… |
Description
We are experiencing a problem where users who've deleted their accounts are still receiving email notifications of group activities.
Network has 2 sites:
Main site has BuddyPress activated
Second site is non BuddyPress
A user has joined a group on the BuddyPress site, then chosen the delete account option from their BuddyPress profile settings.
This removes them from the BuddyPress site, but, as expected, does not remove them from the second site on the installation.
However, it's also not removing them from the group members in the database (their id remains in the group members field in the wp_bp_group_members table).
As a result they are still receiving email notifications related to the group.
If problem is confirmed, I suggest BP should be hooking on to the delete and clearing the group members table accordingly.
Change History (5)
#2
@
9 years ago
I wasn't able to reproduce.
I've tested this :
- Multisite, BuddyPress activated on root blog but not network widely
- Multisite, BuddyPress activated network widely
In both cases, even if the user has a role on another site of the network the user is *completely* deleted and not removed from the site.
So i'm a bit surprised of the behavior you described. Because as we are using wpmu_delete_user()
in bp_core_delete_account()
and not remove_user_from_blog()
to me there's no way the user is not completely deleted without a plugin or a script playing in this area.
I agree case 1 is a bit annoying to me, and another case is possibly a bit more annoying: On the main blog of the network we have a regular administrator. BuddyPress is activated on a subsite. The Administrator wants to be out of the BuddyPress users of the subsite, so he delete his account thinking it's only removing him from this site. And boom!
But if we simply remove the user from the blog, his account will still be available and he would still be listed in members.
So clicking on delete my account means delete my account on all sites of the network :)
Thanks for your report @rogercoathup, i'll look to this issue asap.