Skip to content

Instantly share code, notes, and snippets.

@r-a-y
Created June 28, 2016 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-a-y/1ec4abd0e275f7db056c71a62c478979 to your computer and use it in GitHub Desktop.
Save r-a-y/1ec4abd0e275f7db056c71a62c478979 to your computer and use it in GitHub Desktop.
Index: src/bp-activity/bp-activity-screens.php
===================================================================
--- src/bp-activity/bp-activity-screens.php
+++ src/bp-activity/bp-activity-screens.php
@@ -250,6 +250,8 @@
}
// If activity author does not match displayed user, block access.
+ var_dump( bp_displayed_user_id() );
+ var_dump( $activity->user_id ); die();
if ( true === $has_access && bp_displayed_user_id() !== $activity->user_id ) {
$has_access = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment