[buddypress-trac] [BuddyPress] #5116: groups_delete_group() checks user group admin status
buddypress-trac
noreply at wordpress.org
Fri Jul 26 01:46:29 UTC 2013
#5116: groups_delete_group() checks user group admin status
--------------------------+-----------------------------
Reporter: ericlewis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Groups | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
Kinda bizarre behavior. This means this function can't be used
programmatically (e.g. in a cron job, where no WP user is signed in). You
could do something like this as a workaround:
{{{
$group = new BP_Groups_Group( 1 );
$group->delete();
}}}
but I'm surprised the Groups API function checks user caps here.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5116>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list