[buddypress-trac] [BuddyPress Trac] #5348: Inconsistency between front end and back end: Group Delete

buddypress-trac noreply at wordpress.org
Sun Jan 19 21:06:21 UTC 2014


#5348: Inconsistency between front end and back end: Group Delete
--------------------------+-----------------------------
 Reporter:  glyndavidson  |      Owner:
     Type:  task          |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Groups        |    Version:  1.9.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 At present (This needs testing) I believe site admins can delete any group
 if using the front end, but in the back end, they get "-1".

 Site admins should be able to delete groups in both front, and back end.

 In /bp-groups/bp-groups-admin.php on line 563 there is this code:
 {{{
 if ( ! is_super_admin() )
    die( '-1' );
 }}}

 This line should be the BP equivalent of:
 {{{
 if ( ! current_user_can_for_blog( get_current_blog_id(), 'bp_moderate') )
     die( '-1' );
 }}}
 ?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5348>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list