The domain access field list all domains for any user

Created on 26 November 2024, 4 months ago

Problem/Motivation

When a user with an assigned domain create or edit a menu item, the domain access field list all the available domains without restriction.

Steps to reproduce

- Create a user with an assigned domain
- Add a menu link
- All the domains are available in the "Domain Access" field

Proposed resolution

Implements the hook_domain_references_alter as the domain access module does to restrict the list to user's assigned domains :
https://git.drupalcode.org/project/domain/-/blob/2.0.x/domain_access/dom...

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024