Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#1586 closed defect (bug) (fixed)

Admin cannot delete accounts

Reported by: jconti's profile j.conti Owned by:
Milestone: 1.2 Priority: major
Severity: Version:
Component: 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 14 years ago.
Allow admin user to delete other users
1586.patch (1.9 KB) - added by GIGALinux 14 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
14 years ago

  • Milestone set to 1.2

@jivany
14 years ago

Allow admin user to delete other users

#2 @jivany
14 years ago

  • Cc jeff@… added
  • Keywords has-patch needs-testing added
  • Summary changed from Admin cannot delete accounts (WordPress Simple) to 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
14 years ago

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

#3 @jivany
14 years ago

  • Keywords needs-testing removed

#4 @apeatling
14 years ago

  • Priority changed from minor to major

#5 @apeatling
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.