Now workflow_access module doesn't support node translations. It should contain something like that:

  // Create grants for each translation of the node.
  foreach ($node->getTranslationLanguages() as $langcode => $language) {

See node_access_test_language_node_access_records for details.

Comments

kalistos created an issue. See original summary.

kalistos’s picture

kalistos’s picture

StatusFileSize
new7.49 KB

Patch.

johnv’s picture

Status: Active » Needs review

Status: Needs review » Needs work
johnv’s picture

Status: Needs work » Needs review

  • johnv committed 14b6ca2 on 8.x-1.x authored by kalistos
    Issue #2899668 by kalistos: Node access records, translation support
    
johnv’s picture

Thanks, committed. Sorry for the delay.

I think you even fixed an error by setting the line $grants[] = [...] within the loop.

johnv’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.