- Issue created by @LLior
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.
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.
Please check if the code is correct.
Active
1.4
Code