Skip to content

Don't include "guest" in the Roles inputfield #200

@Toutouwai

Description

@Toutouwai

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.

2018-06-04_131704

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions