[BUGFIX] Use correct IN statement for webmounts 74/48774/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 1 Jul 2016 17:50:59 +0000 (19:50 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 1 Jul 2016 18:40:49 +0000 (20:40 +0200)
This patch fixes the IN statement used for fetching the webmounts.
Previously, the statement looked like `IN("1,2,3")`, resulting in only
returning the last one.

Resolves: #76861
Related: #75546
Releases: master
Change-Id: I02204f5469d996e8ea967485737496b32a343231
Reviewed-on: https://review.typo3.org/48774
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php

index daf5bac..32e3b2b 100644 (file)
@@ -1385,7 +1385,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                         $this->getPagePermsClause(1),
                         $queryBuilder->expr()->in(
                             'uid',
-                            $queryBuilder->createNamedParameter($this->groupData['webmounts'])
+                            GeneralUtility::intExplode(',', $this->groupData['webmounts'])
                         )
                     )
                     ->execute()