- Status changed to Closed: works as designed
over 1 year ago 11:05am 19 January 2023
I have a custom module in which I create my own access records and grants, giving a specific user access to a node.
They are not taken into account if PBT grants exist for this node that don't give access to said user, because of the call to handleAccessToNodePages() in Drupal\permissions_by_term\Listener\KernelEventListener class, leading to canUserAccessByNode() in AccessCheck service.
To make it work:
I'm not aware of all functionalities and checks in this module, but it seems to me that there is no point in doing basic access check on node pages if node access records are enabled, as they already check access.
I would call handleAccessToNodePages() only if node access records are disabled in PBT settings.
Closed: works as designed
3.1
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.