Support custom user form modes.

Created on 13 May 2021, over 3 years ago
Updated 29 April 2024, 7 months ago

Problem/Motivation

The RoleAssign form widget is inserted to the user_register_form and user_form form ids, but not into custom form modes for the user entity.

Steps to reproduce

  1. Create a custom user form mode
  2. Attempt to create/edit a user using that form and an account that has the "assign roles" permission but not the "administer permissions" permission
  3. The roles options will not appear on the form.

Proposed resolution

Modify roleassign_form_alter() to check the entity type of the form, rather than the form id.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hipp2bsquare Temple, New Hampshire

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024