[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 21:00:33 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 | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Description changed by r-a-y:
Old description:
> 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.
New description:
See:
https://buddypress.org/support/topic/issue-2-1
-bp_activity_user_can_delete-users-cannot-delete-their-own-activity/
Problem is due to r8697 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#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list