Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 17 years ago

#1586 closed defect (bug) (fixed)

Admin cannot delete accounts

Reported by: j.conti Owned by:
Priority: major Milestone: 1.2
Component: Version:
Severity: Keywords: has-patch
Cc: jeff@…

Description

Admin cannot delete accounts by Buddy bar.

Allways shows "There was a problem..."

Attachments (2)

delete_user.patch​ (1.9 KB ) - added by jivany 17 years ago.
Allow admin user to delete other users
1586.patch​ (1.9 KB ) - added by GIGALinux 17 years ago.
Tested, works for me. Added a cleaner version of the patch to meet the requirements of the coding standards.

Download all attachments as: .zip

Change History (7)

#1 @j.conti
17 years ago

  • Milestone → 1.2

@jivany
17 years ago

Allow admin user to delete other users

#2 @jivany
17 years ago

  • Cc jeff@… added
  • Keywords has-patch needs-testing added
  • Summary Admin cannot delete accounts (WordPress Simple) → Admin cannot delete accounts

This issue appears to affect both WP Single and WPMU installations.

There were two issues underlying this problem. First is that the is_site_admin() function does not allow you to specify a particular user_id, it only checks the current user.

Second is that in a WP Single installation, the wpmu_delete_user() function does not exist.

Both have been addressed in the patch. I did some limited testing on a 2.9.1 WPMU and a 2.9.1 WP Single installation but I wouldn't consider my solution "fully tested".

@GIGALinux
17 years ago

Tested, works for me. Added a cleaner version of the patch to meet the requirements of the coding standards.

#3 @jivany
17 years ago

  • Keywords needs-testing removed

#4 @apeatling
17 years ago

  • Priority minor → major

#5 @apeatling
17 years ago

  • Resolution → fixed
  • Status new → closed

(In [2419]) Fixes #1586 - delete user on single wp installs.

Note: See TracTickets for help on using tickets.