Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Rules actions that add new field collection items to a node fail to work when Node access user reference is enabled. The items aren't added, and there's a message saying "Access violation! You have insufficient access permissions to edit this configuration.".
The acting user is the owner of the node, and is even allowed to edit all nodes of that type. Node access user reference is not used on any field (not on that node type, nor any other). There are entity reference fields on the site (but no user reference fields).
Proposed resolution
Find out what is causing this problem.
Remaining tasks
…
User interface changes
…
API changes
…
Comments
Comment #1
Itangalo CreditAttribution: Itangalo commentedI get the same result when using the Content Access module. So this is probably something related to Field collection.
I'm continuing the investigation.
Comment #2
Itangalo CreditAttribution: Itangalo commentedOk, I am now pretty certain that this is caused by Rules in some way. When executing a Rules component, Rules checks if the acting user has permissions to edit the used component (for some non-trivial meaning of 'edit'). If not, the user can't execute that component (unless permissions are explicitly set otherwise).
These issues helped me in my digging:
#1301940: Permissions required to perform action?
#1217128: limiting Rules components to specific permissions
I'm opening a new issue over at Rules, to discuss the unexpected effect of access modules.
Comment #3
Itangalo CreditAttribution: Itangalo commented…and here's that issue: #2078585: Unexpected behaviour for component access when enabling access modules