"Publish content to any assigned domain" permission doesn't work

Created on 18 November 2024, about 1 month ago

Drupal Version

10.3.6

Domain module version

2.0.x-dev

Expected Behavior

When logged in as a user assigned to the UK affiliate, with the "Publish content to any assigned domain" permission on my assigned role, I would expect to be able to create & publish nodes and affiliate them with just my domain (and not domains I am not affiliated with).

I would expect to see this widget I have configured on the node.

Actual Behavior

Users with the "Publish content to any assigned domain" permission, don't see the affiliates widget, so they can't assign the node to any domain. They also can't save the node (

Steps to reproduce

  1. On a Drupal 10.3.6 site, install Domain 2.0.x-dev (I am also using Domain Entity 1.0.x-dev and Domain Microsite 2.0.x-dev)
  2. Create a user role (mine is location editor)
  3. Give that role the "Publish content to any assigned domain" permission
  4. Make sure to give the role the other needed permissions (e.g., ability to create and edit nodes of this type, use the admin theme and admin pages, etc.)
  5. Create a user and assign the new role - also assign the user to one or more particular affiliate domain
  6. Create a content type and add the domain_access field to it
  7. Under form settings configure it for checkboxes (it doesn't work for any widget type - I have tried)
  8. Login as your test user
  9. Create a node of the type with the Affiliation field
  10. Try to assign node to domain(s) the user is assigned to (you can't)
  11. Try to save the node (you can't)

Work Around

The only way to get past this issue is to assign the role "Publish to any domain" to the roles in question, but then everyone can publish everywhere and we don't want that.

πŸ› Bug report
Status

Active

Version

2.0

Component

Miscellaneous

Created by

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

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

Comments & Activities

Production build 0.71.5 2024