Rest log entity delete and canonical page fatal error

Created on 31 October 2023, about 1 year ago
Updated 14 November 2023, about 1 year ago

Problem/Motivation

When you visit /admin/reports/rest_log/{rest_log}/delete or /admin/reports/rest_log/{rest_log}(by default overwritten by view path, but appear when you change it in details view display) as administrator it results with fatal error:

TypeError: Drupal\Core\Access\AccessResult::allowedIfHasPermission(): Argument #1 ($account) must be of type Drupal\Core\Session\AccountInterface, null given, called in /var/www/html/web/modules/contrib/rest_log/src/Entity/RestLog.php

Steps to reproduce

1. Visit /admin/reports/rest_log/{rest_log}/delete logged as administrator.

Proposed resolution

Add dedicated access handler to rest_log entity.

Remaining tasks

-

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland ad0z

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

Comments & Activities

Production build 0.71.5 2024