Skip to:
Content

BuddyPress.org

Ticket #7113: 7113.has-access.02.patch

File 7113.has-access.02.patch, 489 bytes (added by r-a-y, 4 years ago)
  • src/bp-activity/bp-activity-screens.php

     
    249249                }
    250250        }
    251251
     252        // If activity author does not match displayed user, block access.
     253        if ( true === $has_access && bp_displayed_user_id() !== $activity->user_id ) {
     254                $has_access = false;
     255        }
     256
    252257        /**
    253258         * Filters the access permission for a single activity view.
    254259         *