Users not assigned to a domain can create content on the domain

Created on 15 July 2024, 9 months ago

Drupal Version

10.2

Domain module version

2.0.0-beta1

Expected Behavior

Users should not be able to create content on the domain.

Actual Behavior

The user created a node that was published on the other domain

Steps to reproduce

- Create 2 domains: a.com, b.com, only give them permissions to create content on assigned domains
- Create a user and assign him to b.com
- Login as this user, but on a.com
- Go to node/add/page
- You will see that b.com is available as checkbox, but a.com is also selected but not editable

The following domains are currently assigned and cannot be changed:
a.com

- After saving, the node is published to a.com

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium nils.destoop

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

Comments & Activities

Production build 0.71.5 2024