Problem/Motivation
I want to clone a product from the Drupal commerce module, but I don't have the option to take ownership. The problem is the missing permissions because the commerce has its own implementation of the EntityOwnerTrait.
Steps to reproduce
- Install drupal/commerce module
- Go to /admin/people/permission -> Permissions Tab -> Select Entity Clone
- Search for "Allow user to take ownership of Product. All commerce entity related permissions are missing."
Proposed resolution
Check for the EntityOwnerInterface instead of OwnerEntityTrait, since its less likely that other modules use a different interface.
Remaining tasks
Testing
User interface changes
none
API changes
N/A
Data model changes
N/A
Issue fork entity_clone-3586707
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hlaun commentedComment #4
hlaun commentedComment #5
hlaun commentedComment #6
hlaun commentedComment #7
hlaun commented