pmpro-buddypress icon indicating copy to clipboard operation
pmpro-buddypress copied to clipboard

Lock access to all of BuddyPress should include Activity Tab and Access

Open kimwhite opened this issue 2 years ago • 1 comments

Describe the bug Currently, with “No - Lock access to all of BuddyPress”, the users can see their profile with Activity Tab active and the ability to leave messages.

To Reproduce Steps to reproduce the behavior:

  1. Enable BuddyPress and PMPro and BuddyPress Integration
  2. Under Non-Members setting, select "No - Lock access to all of BuddyPress"
  3. Register on-site without a membership level
  4. User can see Activity Tab and is can fill out a message that shows on the Activity Stream

Screenshots Screenshot 2023-06-13 at 2 43 13 PM

Screenshot 2023-06-13 at 2 42 09 PM

Expected behavior Non-Members or Levels with this setting, BuddyPress Access, should be totally disabled.

Isolating the problem (mark completed items with an [x]):

  • [x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • [x] This bug happens with a default WordPress theme active or Memberlite.
  • [x] I can reproduce this bug consistently using the steps above.

WordPress Environment

``` WordPress 6.2.2 Paid Memberships Pro 2.11 Paid Memberships Pro - BuddyPress 1.4.1 ```

kimwhite avatar Jun 13 '23 18:06 kimwhite

As a temporary fix to keep non-members from adding to or viewing the activity feed, I have written a snippet to:

  • Remove the Activity tab from the member's profile using CSS to "hide" the activity option from the admin menu. https://gist.github.com/kimwhite/3054a61d93c97a6c3c10f70af0dbbbb9

kimwhite avatar Jun 13 '23 20:06 kimwhite