Skip to:
Content

bbPress.org

Opened 6 weeks ago

Closed 6 weeks ago

#3715 closed defect (bug) (fixed)

Super moderators can't edit users without a site role when global access is enabled

Reported by: obenland Owned by: johnjamesjacoby
Priority: normal Milestone: 2.6.20
Component: API - Roles/Capabilities Version: trunk
Severity: normal Keywords: has-patch needs-testing
Cc:

Description

r7689 limits super-moderator edit_user/promote_user mapping to members of the current site:

( ! is_multisite() || is_user_member_of_blog( $_user_id ) ) 

With global access enabled (_bbp_allow_global_access), every network user is a forum user, but they only get the default role (and become a site member) when they first visit while logged in. Until then, moderators can't edit them: bbp_check_user_edit() redirects the /edit/ screen back to the profile. So moderators can't block a spam account that hasn't been active on the forums yet. A keymaster has to assign a role first.

Reported on WordPress.org support forums: ​https://wordpress.slack.com/archives/C02QB8GMM/p1791467652672879

Steps to reproduce

  1. Multisite, global access on, super moderators allowed.
  2. Pick a network user with no role on the forums site.
  3. As a moderator, open their profile and go to /edit/. You get redirected back to the profile.

Attachments (1)

3715.3.diff​ (1.8 KB ) - added by obenland 6 weeks ago.

Download all attachments as: .zip

Change History (6)

#1 @obenland
6 weeks ago

  • Keywords has-patch needs-testing added

This ticket was mentioned in ​Slack in #meta by obenland617. ​View the logs.


6 weeks ago

#3 @johnjamesjacoby
6 weeks ago

  • Milestone Awaiting Review → 2.6.20

#4 @johnjamesjacoby
6 weeks ago

In 7891:

Users: Restore moderator access to network users.

Allow super moderators to manage forum roles for network users when global access is enabled, while limiting initial non-member edits to the forum role and preserving protected users and sensitive fields.

In trunk, for 2.7.

Props obenland.
See #3715.

#5 @johnjamesjacoby
6 weeks ago

  • Owner set to johnjamesjacoby
  • Resolution → fixed
  • Status new → closed

In 7892:

Users: Restore moderator access to network users.

Allow super moderators to manage forum roles for network users when global access is enabled, while limiting initial non-member edits to the forum role and preserving protected users and sensitive fields.

In branches/2.6, for 2.6.20.

Props obenland.
Fixes #3715.

Note: See TracTickets for help on using tickets.