Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#1353 closed defect (bug) (fixed)

Users cannot delete accounts / !(int) get_site_option( 'bp-disable-account-deletion' )

Reported by: thomasbp's profile thomasbp Owned by:
Milestone: 1.1.3 Priority: major
Severity: Version:
Component: Keywords: account, delete, deletion, disable, bp-disable-account-deletion
Cc:

Description

My users cannot delete their own accounts.
PHP 5.2.10 / WPMU 2.8.6 / BP 1.1.2 /

The deletion rocess breaks in the

function bp_core_delete_account()

at the condition

if ( ( !(int) get_site_option( 'bp-disable-account-deletion' ) && !is_site_admin() ) )

I've switched the "Disable Account Deletion" option in the BP-Backend off and on, but it didn't help.

I've changed the condition to
if ( ( get_site_option( 'bp-disable-account-deletion' )!=0 && !is_site_admin() ) )

and it works now.
However, I don't know whether this is a security risk.

Change History (2)

#1 @apeatling
15 years ago

  • Milestone set to 1.1.3

#2 @apeatling
15 years ago

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

(In [2111]) Fixes #1353

Note: See TracTickets for help on using tickets.