Closed (fixed)
Project:
Nbox
Version:
8.x-1.0-alpha1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2019 at 08:17 UTC
Updated:
8 Oct 2019 at 10:44 UTC
Jump to comment: Most recent
Received an error when trying to create a new nbox message:
Error: Call to a member function hasPermission() on null in Drupal\nbox\Entity\Access\NboxAccessControlHandler->createAccess() (line 24 of /docroot/modules/contrib/nbox/src/Entity/Access/NboxAccessControlHandler.php) #0
/docroot/core/lib/Drupal/Core/Entity/Controller/EntityController.php(141): Drupal\nbox\Entity\Access\NboxAccessControlHandler->createAccess('message', NULL, Array, true) #1
[internal function]: Drupal\Core\Entity\Controller\EntityController->addPage('nbox') #2
Changing the createAccess() function to checkCreateAccess() seems to work fine, no errors thrown anymore.
| Comment | File | Size | Author |
|---|---|---|---|
| nbox-create-access-check.patch | 752 bytes | mariusilie |
Comments
Comment #3
botrisThank you, patch has been committed.