Can delete content and bypass trash with the parameter in_trash

Created on 5 February 2025, about 1 month ago

Problem/Motivation

I discorvered that I can delete entities completely when calling `/node/{node}/delete` with the `in_trash` query parameter. Even if it requires manually adding `?in_trash` to the url, it does not give the impression that this is how it should be.

Steps to reproduce

Set up a drupal instance.
Add a node type.
Require and install trash.
Configure trash for the node type.
Create a content of the node type.
Call `/node/{node}/delete?in_trash` with a administrator role.
Delete the node.

Proposed resolution

Unfortunately none so far

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany atropoides Hamburg

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

Comments & Activities

Production build 0.71.5 2024