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
- Multisite, global access on, super moderators allowed.
- Pick a network user with no role on the forums site.
- As a moderator, open their profile and go to
/edit/. You get redirected back to the profile.
In 7891: