[FOLLOWUP][TASK] Doctrine: Migrate BackendUserAuthentication::getPagePermsClause 38/50238/2
authorBenni Mack <benni@typo3.org>
Mon, 17 Oct 2016 05:04:27 +0000 (07:04 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 17 Oct 2016 10:47:31 +0000 (12:47 +0200)
After the doctrine refactoring a hook is now not working anymore
as before

Relates: #75556
Resolves: #78313
Releases: master
Change-Id: I797a7ebbf1ec009339ba858d421552595b189998
Reviewed-on: https://review.typo3.org/50238
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Robert van Kammen <rvkammen@hotmail.com>
Tested-by: Robert van Kammen <rvkammen@hotmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php

index cbfbf4b..e71f07b 100644 (file)
@@ -509,7 +509,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
             if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['getPagePermsClause'])) {
                 foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['getPagePermsClause'] as $_funcRef) {
                     $_params = ['currentClause' => $constraint, 'perms' => $perms];
-                    GeneralUtility::callUserFunction($_funcRef, $_params, $this);
+                    $constraint = GeneralUtility::callUserFunction($_funcRef, $_params, $this);
                 }
             }
             return $constraint;