[buddypress-trac] [BuddyPress] #1353: Users cannot delete accounts / !(int) get_site_option( 'bp-disable-account-deletion' )

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Nov 19 13:22:05 UTC 2009


#1353: Users cannot delete accounts / !(int) get_site_option( 'bp-disable-account-
deletion' )
------------------------------------------------------------------------+---
Reporter:  thomasbp                                                     |       Owner:     
    Type:  defect                                                       |      Status:  new
Priority:  major                                                        |   Milestone:     
Keywords:  account,delete,deletion,disable,bp-disable-account-deletion  |  
------------------------------------------------------------------------+---
 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.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1353>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list