content_moderation_node_access(NodeInterface $node, $operation, AccountInterface $account)
Implements hook_node_access().
Nodes in particular should be viewable if unpublished and the user has the appropriate permission. This permission is therefore effectively mandatory for any user that wants to moderate things.
File
core/modules/content_moderation/content_moderation.module, line 173 Contains content_moderation.module.
Code
function content_moderation_node_access(NodeInterface $node, $opera