[PP-1] FilterFormat should add the roles as config dependencies

Created on 16 September 2015, over 9 years ago
Updated 19 February 2024, 10 months ago

Problem/Motivation

  1. The FilterFormat config entity currently does not provide config dependencies to its configured roles.
  2. Related to this, when exporting the config (admin/config/development/configuration/single/export) the dumped YAML contains no roles property as the default config provides.

Proposed resolution

The fix of the main issue is coupled with the fix of the 2nd because when calculating dependencies we want to rely on the $format->roles array.

Add them, like many other places in core has them already.

Remaining tasks

Fix the reverse flow: When deleting a format the roles granted with the permission to use that format should drop the stale permissions. This is fixed in #2571235: [regression] Roles should depend on objects that are building the granted permissions β†’ .

User interface changes

None.

API changes

None.

Data model changes

The FilterFormat object will store the roles granted with "use text format {format}" permission.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
FilterΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡©πŸ‡ͺGermany dawehner

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.

Production build 0.71.5 2024