WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 4 months ago

#34601 reopened defect (bug)

Reinstating "no role for this site"

Reported by: keiron77 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Users Keywords: reporter-feedback
Focuses: multisite Cc:
PR Number:

Description

On a multisite installation when relegating a user to "no role for this site" they disappear from the user listing. In the network user admin area they are still available but there isn't a way to reinstate them even if they are set to a Super Admin here. This is all as expected.

On each child site when trying to add an existing user they can't be found as the options in the select menu don't include "no role for this site". This is where I think the bug needs fixing.

There is a way to reinstate them by copying the user-edit.php url and changing the user_id to theirs.

Change History (4)

#1 in reply to: ↑ description @johnbillion
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for the ticket, @keiron77.

Replying to keiron77:

On each child site when trying to add an existing user they can't be found as the options in the select menu don't include "no role for this site". This is where I think the bug needs fixing.

On multisite, there is no concept of adding a user to a site but giving them no role. The act of setting their role to "No role for this site" removes them from the site (but not from the network).

Searching for the user in the "Email or Username" field when adding an existing user will show you that user, and they can be added back to the site with a role.

#2 @keiron77
4 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

Hi @johnbillion,

I think that's where the problem lies. When using the 'Email or Username' field the suggestions list isn't complete.

I have just set a user called 'claire' to 'No role for this site'. Then, I went back to add a New User, started typing their name and they aren't appearing. Other users that never had a role on the site but are in the network list do appear though.

#3 @johnbillion
4 years ago

  • Keywords reporter-feedback added
  • Milestone set to Awaiting Review

Can you reproduce the problem with all your plugins deactivated and one of the default themes in use?

This ticket was mentioned in Slack in #core-multisite by ocean90. View the logs.


3 years ago

Note: See TracTickets for help on using tickets.