Permission for access to form mode on all bundles

Created on 2 July 2024, 5 months ago

Problem/Motivation

We've recently started using this module and it's been very useful in helping to split up node form fields between modes. One thing we could use is a way to make a form mode available on all bundles to selected roles. This would help prevent us from having to update hundreds (possibly thousands) of permissions needed to filter out our separate form mode from the default one.

As an aside, given the number of entity types and bundles that we're working with, it's impossible to use the module's admin form because it times out. We might want to look into this as well.

Steps to reproduce

N/A

Proposed resolution

Define and implement a separate permission along the lines of use The form mode %mode linked to all bundles on %entity_type_id

Remaining tasks

  1. Implement the permission
  2. Adjust admin UI to account for change

User interface changes

None with the basic change.

Some changes may be required on the admin form to handle large numbers of entity types, bundles, and user roles.

API changes

None.

Data model changes

None.

Feature request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇦🇺Australia geoffreyr

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

Comments & Activities

  • Issue created by @geoffreyr
  • 🇦🇺Australia geoffreyr

    This might be a little more complicated than I'd hoped because there's currently no way to enable or disable specific entity types from being managed by this module. It's all or nothing, which is probably why the admin form is crashing hard all the time.

    I might take a look at https://www.drupal.org/project/form_mode_control/issues/3431354 🐛 Config schema is incorrect Active which aims to fix some of the config mapping issues.

Production build 0.71.5 2024