[buddypress-trac] [BuddyPress Trac] #5900: bp_activity_user_can_delete() doesn't work for non-admins

buddypress-trac noreply at wordpress.org
Tue Sep 23 20:53:02 UTC 2014


#5900: bp_activity_user_can_delete() doesn't work for non-admins
--------------------------+-----------------------
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.1.1
Component:  Activity      |    Version:  2.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 See:
 https://buddypress.org/support/topic/issue-2-1
 -bp_activity_user_can_delete-users-cannot-delete-their-own-activity/

 Problem is due to r8784 and the strict type check of the logged-in user ID
 vs. the activity item's user ID.  The activity item user ID is a string,
 not an integer.  Typecasting the activity item user ID fixes this problem.

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


More information about the buddypress-trac mailing list