-
-
Save r-a-y/1ec4abd0e275f7db056c71a62c478979 to your computer and use it in GitHub Desktop.
Debug activity access problem - https://buddypress.org/support/topic/post-update-unable-to-see-the-buddypress-activity/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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