Problem/Motivation

Trash can be enabled for the entity type Paragraph library item, the Paragraph library item can be moved to the trash, but then it cannot be restored or purged.
Multiple custom entities are embeddable and uses a custom but standardized method getParentEntity, like paragraph.
The access checks performed by Paragraph library item also checks that the user has the same access for the embedded paragraphs, this means that when Restore and Purge permission are checked against the Paragraph library item, then the same access is checked for the paragraph, which fail because the paragraph is not inside the trash.

Proposed resolution

Leverage the method getParentEntity to identify if the actual trashed content is the parent entity.

Comments

marco.pagliarulo created an issue. See original summary.

marco.pagliarulo’s picture

amateescu’s picture

Status: Active » Closed (duplicate)

I thought about this in the past few days, and my opinion is that it should be fixed in the Paragraphs Library module instead.

Unsurprisingly, I also found an issue which fixes it: #3340724: Paragraphs library not compatible with scheduled_transitions

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

marco.pagliarulo’s picture

Thank you for reviewing it and found the other issue on paragraph