- Issue created by @ad0z
- @ad0z opened merge request.
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 6:34pm 31 October 2023 - Status changed to Fixed
about 1 year ago 3:13pm 14 November 2023
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
1. Visit /admin/reports/rest_log/{rest_log}/delete
logged as administrator.
Add dedicated access handler to rest_log entity.
-
Fixed
2.0
Code