Term fields can be set translatable and they can be edited and viewed fine, but in effect the last edit seems to set the access control for all translations.

How to reproduce:

  • Drupal 8.4.4
  • Enable all the multilingual modules (config_translation, content_translation, locale, language)
  • Add a Language
  • Enable a content type to be able to be translated
  • Create a vocabulary

    Name: Access control
    Vocabulary language: Not specified
    TERMS LANGUAGE
    Default language: Finnish
    Show language selector on create and edit pages: yes
    Enable translation: yes <-- important, this means that you should be able to select different terms for translated nodes

  • Create appropriate terms, and translate them, for restricting access for anonymous users
  • Add the term field to the node type and select "Users may translate this field" <-- important
  • Create a node and select terms to make it access denied from anonymous users
  • Translate the node and select terms to make it accessible to anonymous users

Expected behaviour: anonymous can not access the original but can access the translated node
Current behaviour: anonymous can access both nodes

Comments

kari.kaariainen created an issue. See original summary.

  • Peter Majmesku committed a519f51 on 8.x-1.x
    Issue #2948144: Modified method signatures, automatic and manual tests.
    
jepster_’s picture

Status: Active » Fixed

Thanks for the report @kari.kaariainen!

I have released the fix in version 8.x-1.45. See https://www.drupal.org/project/permissions_by_term/releases/8.x-1.45. Please test.

Feel free to re-open this issue, if you have any objections.

jepster_’s picture

Status: Fixed » Closed (fixed)