#5900 closed defect (bug) (fixed)
bp_activity_user_can_delete() doesn't work for non-admins
| Reported by: | r-a-y | Owned by: | r-a-y |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1.1 |
| Component: | Activity | Version: | 2.1 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good catch. (Unit tests would have caught it ;) )