#5900 closed defect (bug) (fixed)
bp_activity_user_can_delete() doesn't work for non-admins
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1.1 | Priority: | normal |
| Severity: | normal | Version: | 2.1 |
| Component: | Activity | Keywords: | has-patch commit |
| Cc: |
Description (last modified by )
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Good catch. (Unit tests would have caught it ;) )