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

Created on 26 August 2021, almost 3 years ago
Updated 25 April 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

Active

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

Comments & Activities

Not all content is available!

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

  • πŸ‡¨πŸ‡¦Canada _randy

    I also see this issue.

    I am denied access to a node by going directly to the node view page.
    However, I can create a block view and show the restricted node in a block on the node view page!

    I can also see the restricted node show up in search results, but access is denied when clicking on the search result.

    This is a pretty major issue.

  • πŸ‡¨πŸ‡¦Canada _randy

    Updating the issue to the 3.1.22 version.

  • πŸ‡ΊπŸ‡ΈUnited States leisurman

    Same problem, I can see restricted node links in the menu

Production build 0.69.0 2024