Issue Bug Closed

#84513Pagetree - Drag and Drop does not work without delete-permissions

Robert Vock 03/21/18, 16:12 updated 10/02/18, 10:51

Description

This is a followup to #25135

It’s still not possible to drag & drop pages in the page tree, if the user does not have delete permissions for a page. I have two pages on the same level. The user does not have the rights to delete those pages, but has the rights to create new pages and edit pages (perms_group=27).

Moving one child into another leads to an error:
<pre> Exception [1.4.14]: Attempt to move record 'Page B' (pages:359) without having permissions to do so. </pre>

My page tree looks like this:
<pre> Parent - Page A - Page B </pre>

and I am trying to move Page B onto Page A. The pagetree updates (without reloading) and shows that page B is a child of Page A (even though the error message is shown). After refreshing the pagetree, Page B is a sibling of Page A again.

The relevant code position is:
https://github.com/TYPO3/TYPO3.CMS/blob/8.7.11/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L4401

If I change the check for “delete” to “edit”, it works as expected, but I am not sure if this is correct. But there is no permission bit for move, only for show, edit, delete, new and editcontent.

Reviews 2