Project

General

Profile

Actions

Bug #84513

closed

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

Added by Robert Vock over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2018-03-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
nightmare
Is Regression:
Sprint Focus:

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:

Exception
[1.4.14]: Attempt to move record 'Page B' (pages:359) without having permissions to do so.

My page tree looks like this:

Parent
  - Page A
  - Page B

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #25135: Pagetree - Drag and drop only works for BE-Users with delete-permissionsClosed2011-02-22

Actions
Actions

Also available in: Atom PDF