Remove special logic for user 1 in SwitchAccessCheck

Created on 27 July 2023, over 1 year ago
Updated 3 September 2024, 6 months ago

Problem/Motivation

Now that Drupal core has the concept of an "is admin" user role, i.e. a role that is automatically granted all permissions, thus can get around normal permission limitations, there shouldn't be special handling for user 1.

Ref https://www.drupal.org/docs/user_guide/en/user-admin-account.html β†’

Proposed resolution

Remove the special logic in src/Access/SwitchAccessCheck.php for user 1, let it fall through to the permissions system.

Remaining tasks

Make the change.

User interface changes

User 1 would no longer have special privileges.

API changes

n/a

Data model changes

n/a

✨ Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024