-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Short description of the enhancement
The Roles inputfield includes the guest role, but this role is always greyed out because every user is automatically a guest.
Although I can see why "guest" is included in the inputfield, that option serves no useful purpose. If it was removed it would have no negative effect - PW knows that every user must have the guest role so even if that checkbox is removed from the inputfield and the form submitted the guest role is still retained as expected.
But if the guest option were removed it would have the benefit that it would be much easier to make Roles a required field. When you have non-superusers that are tasked with creating users and assigning roles to them it is useful to have Roles be a required field so the user sees an error notification if they do not select one or more roles. I can't think of any scenario where it would be correct for a user to be created and given only the guest role.
Currently making Roles required doesn't work as expected because the selected guest role counts as the inputfield being filled out.
