Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 17 years ago

#1343 closed defect (bug) (fixed)

Delete links displayed in error on my friends' activity stream

Reported by: swinton Owned by:
Priority: major Milestone: 1.1.3
Component: Version:
Severity: Keywords: activity, friends, has-patch
Cc:

Description

I have tested this on my local installation, and on testbp.org, and am able to reproduce on both instances.

When viewing my friend's activity (e.g. http://testbp.org/members/swinton/activity/my-friends/), 'Delete' buttons are shown next to all activities, however clicking 'Delete' just takes me to the home page as I don't have permissions to delete any of these activities.

I believe the 'Delete' buttons are being displayed due to $bp->is_item_admin being set incorrectly in bp_core_setup_globals().

The value of is_item_admin is set to the return value of bp_is_home(), which is invalid when looking at friend's activity.

A possible patch for this issue is attached.

Attachments (1)

bp-core.php.patch (741 bytes ) - added by swinton 17 years ago.
Patchfile for revision 2089 of bp-core.php

Download all attachments as: .zip

Change History (3)

@swinton
17 years ago

Patchfile for revision 2089 of bp-core.php

#1 @r-a-y
17 years ago

  • Keywords has-patch added
  • Milestone Future Release1.1.3

#2 @apeatling
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [2109]) Fixes #1343

Note: See TracTickets for help on using tickets.