TypeError: Drupal\role_delegation\Access\RoleDelegationAccessCheck::access(): Argument #1 ($account) must be of type Drupal\Core\Session\AccountInterface, null given

Created on 26 June 2023, over 1 year ago
Updated 27 June 2023, over 1 year ago

Problem/Motivation

This is a follow-up issue to 🐛 Impossible to use "Bulk update" without "Administer users" permission Fixed where \Drupal\role_delegation\Access\RoleDelegationAccessCheck::access is being called from action plugins with the account argument being NULL.

Proposed resolution

Allow $account to be NULL and default back to the current user in those cases.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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

Comments & Activities

Production build 0.71.5 2024