There may be circumstances where the basic authenticated_user role is the only role that a user will need or should choose. If the role field is required and the authenticated_user role is not exposed because it is currently explicitly hidden by select_registration_roles_all_roles, this would be problematic if you do not want a user to select a more complex role. I would propose a configuration setting that hides the authenticated_user by default, but allows this setting to be changed.

In my own use case, most users will take a basic role. I am keeping authenticated_user but have renamed it to a suitable role name. I do want users to be able to select this most basic role - in addition to two more roles with privileged access. Not exposing authenticated_user would simply mean I would be required to create a fourth superfluous role. This would be a pain for maintenance of permissions and is unnecessary. In my case, I have also applied the patch to use the label of the authenticated_user role, which is not Authenticated User.

The solution is to make a simple checkbox field for 'Display the authenticated user role' which can be checked to allow the authenticated_user role to be listed as an option.

Comments

brooke_heaton created an issue. See original summary.

brooke_heaton’s picture

Attached patch adds a new checkbox fields and checks to see if this is True or False. If checked (True), the authenticated_user will be listed as an option in the settings form.

brooke_heaton’s picture

Status: Active » Needs review
lamp5’s picture

Assigned: brooke_heaton » Unassigned
Status: Needs review » Needs work

It "needs work" based 2.x branch.

lamp5’s picture

Version: 8.x-1.x-dev » 2.0.x-dev

  • lamp5 committed 45d85bd on 3134002
    Issue #3134002 by brooke_heaton: Allow authenticated user role
    

  • lamp5 committed 45d85bd on 2.0.x
    Issue #3134002 by brooke_heaton: Allow authenticated user role
    
lamp5’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.