[buddypress-trac] [BuddyPress] #1343: Delete links displayed in error on my friends' activity stream

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Nov 13 12:57:30 UTC 2009


#1343: Delete links displayed in error on my friends' activity stream
-----------------------------+----------------------------------------------
Reporter:  swinton           |       Owner:                
    Type:  defect            |      Status:  new           
Priority:  major             |   Milestone:  Future Release
Keywords:  activity,friends  |  
-----------------------------+----------------------------------------------
 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.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1343>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list