Group authors can't see public nodes of other groups: CacheableAccessDeniedHttpException error

Created on 17 February 2024, 10 months ago

Problem/Motivation

My use of Groups is for maintaining separate sections of our website. These are public sections with public pages, and the pages are currently visible to anonymous users.

However, when Group members are logged in, they can no longer see the public pages of other Groups.
They get an access denied error: CacheableAccessDeniedHttpException error.

The Drupal users attached to the group memberships have Drupal permissions to view content, and within Group permissions, the members all have the same access as anonymous users. I'm puzzled as to why they are being denied access.

Does anyone have a suggestion about what I might have set incorrectly, or what's the best way to track down where permissions might be failing. The route that it seems to fail on is entity.node.canonical (when I look at the route being checked in AccessAwareRouter.php of the error)

Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 118 of /app/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php )
πŸ’¬ Support request
Status

Closed: works as designed

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adriancotter

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

Comments & Activities

  • Issue created by @adriancotter
  • πŸ‡ΊπŸ‡ΈUnited States adriancotter

    Ah, I figured out the answer shortly after writing this out, but hopefully it will help someone else.

    You have to create another Outside role for Authenticated Users and set permissions accordingly.

    If there's another way to do it, please let me know. But I appreciate the sense this makes in context of Drupal permissions themselves.

  • Status changed to Closed: works as designed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States adriancotter
Production build 0.71.5 2024