Move entity permissions to the module that is providing the entity

Created on 21 January 2021, over 3 years ago
Updated 30 January 2023, over 1 year ago

Problem/Motivation

In #2571235: [regression] Roles should depend on objects that are building the granted permissions β†’ @alexpott found out that a number of entity permissions are not in the module that is providing the entity. For instance the permission "administer views" is in the views_ui module and not in the views module.

Proposed resolution

Move entity permissions to the modules that are providing the entity.
The following permissions will be moved:

  1. The permission "administer actions" has been moved from the action module to the system module;
  2. The permissions "administer url aliases" and "create url aliases" have been moved from the path module to the path_alias module;
  3. The permission "administer views" has been moved from the views_ui module to the views module;
  4. For all fieldable entities: The permissions "administer ENTITY_TYPE fields", "administer ENTITY_TYPE form display" and "administer ENTITY_TYPE display" have been moved from the field_ui module to the field module.

Remaining tasks

Review patch
Commit patch

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

For the committer

The idea for this issue comes from @alexpott. Therefore he should get a commit credit for this issue.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
BaseΒ  β†’

Last updated 13 minutes ago

Created by

πŸ‡³πŸ‡±Netherlands daffie

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

Comments & Activities

Not all content is available!

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

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.69.0 2024