From 0ca254b55dd181bd26b42c70a919023c36231b6b Mon Sep 17 00:00:00 2001 From: Benni Mack <benni@typo3.org> Date: Tue, 19 Apr 2016 18:37:30 +0200 Subject: [PATCH] [BUGFIX] Correct SQL query for BE user filemounts Due to a wrong SQL statement, it is not possible to evaluate any filemounts anymore for be users / groups. The patch sets a correct SQL statement. Resolves: #75792 Releases: master Change-Id: I0f293a4ffc914e95608509e45257a00c938f291a Reviewed-on: https://review.typo3.org/47796 Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de> Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../Classes/Authentication/BackendUserAuthentication.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php index 1f2c4571ccaf..a93371ffeb2d 100644 --- a/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php +++ b/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php @@ -1584,10 +1584,9 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU $queryBuilder = $connectionPool->getQueryBuilderForTable('sys_filemounts'); $queryBuilder->select('*') ->from('sys_filemounts') - ->where($queryBuilder->expr()->eq('deleted', 0)) - ->andWhere($queryBuilder->expr()->eq('hidden', 0)) + ->where($queryBuilder->expr()->eq('hidden', 0)) ->andWhere($queryBuilder->expr()->eq('pid', 0)) - ->andWhere($queryBuilder->expr()->in('uid', $queryBuilder->createNamedParameter($fileMounts))); + ->andWhere($queryBuilder->expr()->in('uid', $fileMounts)); foreach (QueryHelper::parseOrderBy($orderBy) as $fieldAndDirection) { $queryBuilder->addOrderBy(...$fieldAndDirection); -- GitLab