JobAccessControlHandler::checkAccess() should always return an AccessResult

Created on 17 January 2023, over 1 year ago
Updated 2 May 2024, about 1 month ago

Problem/Motivation

When a module adds a custom entity operation, the access control handler doesn't return an AccessResult, resulting in the following error.
TypeError: Argument 1 passed to Drupal\Core\Access\AccessResult::orIf() must implement interface Drupal\Core\Access\AccessResultInterface, null given, called in /var/www/html/web/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php on line 105 in Drupal\Core\Access\AccessResult->orIf() (line 282 of /var/www/html/web/core/lib/Drupal/Core/Access/AccessResult.php)

This is the case when using the Entity clone (entity_clone) module.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Core

Created by

πŸ‡§πŸ‡ͺBelgium yoerioptr

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