i have 3 domains
site1.mydomain.com
site2.mydomain.com
site3.mydomain.com

users
administrator = administrator role
user1 = authenticated role
user2 = authenticated role

user1 affiliated to site1.mydomain.com and site2.mydomain.com

authenticated role has the permit to add, delete and edit his own content

the user1 is able to add content to assigned(affiliate) domain, but the content is crated, the domain access is not selected by the default, meaning the content created is not assigned(affiliate) to any domain

Comments

RobertoGuzman created an issue. See original summary.

agentrickard’s picture

A few questions, because I think we have test coverage for this case.

1) What are the exact permissions that user 1 has?

2) What domains, if any, is that user assigned to?

3) Does the user have the chance to select a domain when creating content?

4) What domain is the node being created from? Is that in the user's allowed list?

5) What domain values, if any, are saved for the node?

RobertoGuzman’s picture

1) What are the exact permissions that user 1 has?
user 1 is a regular user, has the permission to create, edit and delete their own Content Type "Pages"

2) What domains, if any, is that user assigned to?
user 1 is assigned to site1.mydomain.com

3) Does the user have the chance to select a domain when creating content?
user 1 does not have the option to select any site at all when is creating content

4) What domain is the node being created from? Is that in the user's allowed list?
user 1 is creating content from the domain, site1.mydomain.com, where the user 1 has been assigned

5) What domain values, if any, are saved for the node?
The node is saved, but the node does not have any domain value

agentrickard’s picture

This is a permissions configuration issue.

Domain Access provides it's own permissions to make domain assignments. Make sure the user can 'Publish content to any assigned domain' or 'Publish to any domain'.

See also #2815951: When a user edits a entity/node that's shared across multiple domains, it ends up referencing only their domain(s), which handles some more advanced use cases.

The note in #5, however, brings up an interesting issue, which we need to test in that other patch. By default, if no domains are selected, we save to the {node_access} table -- see domain_access_node_access_records(). But there is no guarantee that information is saved in the field, though it should be set by default. That setting may not happen if the field is hidden.

agentrickard’s picture

Status: Active » Closed (duplicate)

Filing as a duplicate of the other issue.