"Require all terms granted" not applying to Menus and Views

Created on 26 August 2021, about 3 years ago
Updated 10 September 2024, 2 months ago

Problem/Motivation

I am using the Permissions by Term module to limit access to node entities based on Terms assigned to the nodes. The users have roles assigned to them and those roles are assigned to those taxonomy terms. When selecting "Require all terms granted" a page that should not be accessible does provide an Access Denied message. However, that page is not taken out of menu or views listing nodes. Here is an example of what I'm working with.

  • Role1 - Term1 Term2 Term3
  • Role 2 - Term4 Term5 Term6
  • Content1 - Term1 Term2 Term3
  • Content2 - Term4 Term5 Term6
  • Content3 - Term9 Term8 Term7

For Role1 Content1 displays as it should (in menu, view, and content page), content2 is not displayed anywhere, content3 is displaying in menu and view but you are given an access denied message on content page. This is the same case for Role2 (it works as it should with exception to content3)

Steps to reproduce

Install module
Turn on all modules and sub-modules
Build out the above structure
Assign terms to roles
create users with those roles
create content with terms as above and add content to menu
login with correctly permissioned user.

After these steps you should see content in menu (and views) that your user should have access to. If you go to the page you get an access denied message, but items are still visible.

πŸ› Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johnpicozzi Providence, RI

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024