Skip to content

Instantly share code, notes, and snippets.

@r-a-y r-a-y/activity-access.patch Secret

Created Jun 28, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.