Domain Entity module compatibility issue causes hasDomainPermissions() to return nothing

Created on 7 March 2024, 4 months ago

Drupal Version

10.2.2

Domain module version

2.0.x-dev

Expected Behavior

Users should be able to use the Domain Content helper module's Admin > Content > Affiliate Content admin view to view content for Domains they are assigned to (assuming they have the Domain content permission "Access domain content pages")

Actual Behavior

When the Domain Access Entity β†’ module is also installed, authorized users see the Admin > Content > Affiliate Content menu link, but when they follow it they get access denied.

Steps to reproduce

  1. Enable Domain Access module
  2. Enable Domain Content helper module
  3. Enable Domain Access Entity module
  4. Create or edit user
  5. Give them role that has Domain Content "Access domain content pages" permission enabled - this role also needs all the basic editor admin, domain and domain entity permissions needed to edit nodes assigned to the same domain they are assigned to (remember to rebuild permissions if you change role permissions)
  6. Login or masquerade as that user
  7. Select Content > Affiliate Content from the Admin menu
  8. You will get access denied
πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States banoodle San Francisco, CA

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024