CustomAccess form should not use overridden permissions

Created on 3 March 2022, over 3 years ago
Updated 10 July 2024, 11 months ago

Problem/Motivation

When using global overrides to override permissions, these new permissions will be loaded in CustomAccess::submitAdminForm(). So when saving the form, the overridden permissions will be saved to the database.

Steps to reproduce

Add something like this to settings.php:

$config['user.role.webmestre']['permissions'][9999] = 'foo';

Then edit a field using CustomAccess and save the form.
The overridden permission is saved in the config.

Proposed resolution

CustomAccess should load the permissions from the config without any override.

🐛 Bug report
Status

Needs work

Version

1.1

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