Warn when permissions are overridden

Created on 15 April 2022, about 2 years ago
Updated 22 March 2023, over 1 year ago

Problem/Motivation

We sometimes override role permissions and it would be useful if a warning could be displayed on /admin/people/permissions.

Steps to reproduce

Create a class implementing ConfigFactoryOverrideInterface that adds some permissions:

  public function loadOverrides($names): array {
    $overrides = [];
    if (in_array('user.role.webmestre', $names)) {
      $overrides['user.role.webmestre']['permissions'][9999] = 'foo';
      $overrides['user.role.webmestre']['permissions'][9998] = 'bar';
    }

    return $overrides;
  }

Proposed resolution

FormOverrides::getFormConfigNames() should handle UserPermissionsForm.

✨ Feature request
Status

Needs review

Version

1.3

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

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.69.0 2024