Project

General

Profile

Actions

Bug #79577

closed

Non admin BE user can not delete pages and some other records

Added by Pixelant Developer about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2017-02-01
Due date:
% Done:

0%

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

Description

When trying to delete page when logged in as BE non admin user - getting exception

An exception occurred while executing 'SELECT COUNT(`uid`) FROM `be_groups` WHERE (`pid` IN (?)) AND (`be_groups`.`deleted` = 0)

Looks like it fails when check if there are records from disallowed tables in "sysext/core/Classes/DataHandling/DataHandler.php" when building query on line 8032.

$count = $query->count('uid')
                    ->from($table)
                    ->where($query->expr()->in(
                        'pid',
                        $query->createNamedParameter($inList, Connection::PARAM_INT_ARRAY)
                    ))
                    ->execute()
                    ->fetchColumn(0);

$inList is string, but expected parameter is array

$query->createNamedParameter([$inList], Connection::PARAM_INT_ARRAY)

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #79309: Deleting of a page by a non-admin user throws exceptionClosed2017-01-13

Actions
Actions #1

Updated by Markus Klein about 7 years ago

  • Status changed from New to Needs Feedback

I'm failing to find this code in the current master branch. Maybe this has been resolved already?

Actions #2

Updated by Stephan Großberndt about 7 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF