Skip to:
Content

BuddyPress.org

Ticket #3211: 3211.01.patch

File 3211.01.patch, 528 bytes (added by r-a-y, 14 years ago)
  • buddypress/bp-activity/bp-activity-screens.php

     
    8484        if ( !$activity = $activity['activities'][0] )
    8585                bp_core_redirect( bp_get_root_domain() );
    8686
     87        // If the displayed user isn't the author of this activity update, redirect them to the root
     88        if ( bp_displayed_user_id() != $activity->user_id )
     89                bp_core_redirect( bp_get_root_domain() );
     90
    8791        // Default access is true
    8892        $has_access = true;
    8993