permission by field references to taxonomy term seems don't work

Created on 27 November 2023, over 1 year ago

Problem/Motivation

I am trying to divide user into groups automatically when they register with help of taxonomy terms. Users should view the contents, which has that same taxonomy terms. If I try to achieve it with roles, I would have manage like 60 roles, since each will be divided into three roles. So I added to users and content types the pbf field with the same machine name, "user_group", which references to the taxonomy term of the vocabulary "user group". The reference typ "default" and only the "user group" is checked. Node access priority is not installed because it doesn't support Drupal 10. The default value is set accordingly and "public" is checked. Users are automatically getting the term group A, B and C by registration. But the users with group C can view and create the contents, whose content type has a pdb field with default value A. I have permission by term installed, though it doesn't touch the "user group" vocabulary.

Steps to reproduce

Install the module, add to user and content types the pbf fields which references to taxonomy terms of a vocabulary. Create users with different terms. Login as newly created user and try to create the content of content types with another taxonomy term of the same vocabulary.

Remaining tasks

Please check if the code is correct.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024