Skip to content

Commit

Permalink
Revert "[BUGFIX] Set BackendUserAspect earlier to make it usable in T…
Browse files Browse the repository at this point in the history
…SConfig"

This reverts commit 52c391d.

When a backend user has set a workspace, this needs
to happen AFTER the user has been initialized (and
the proper workspace has been set), otherwise all
workspace queries are nailed down to "wsid=-99".

Resolves: #86856
Related: #86229
Releases: master
Change-Id: Iee804f99639e1957421818f7ed2bff134b269244
Reviewed-on: https://review.typo3.org/58845
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
  • Loading branch information
ohader authored and andreaswolf committed Nov 14, 2018
1 parent 1ab4b9a commit b315587
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$pathToRoute = $request->getAttribute('routePath', '/login');

Bootstrap::initializeBackendUser();
// Register the backend user as aspect
$this->setBackendUserAspect(GeneralUtility::makeInstance(Context::class), $GLOBALS['BE_USER']);
// @todo: once this logic is in this method, the redirect URL should be handled as response here
Bootstrap::initializeBackendAuthentication($this->isLoggedInBackendUserRequired($pathToRoute));
Bootstrap::initializeLanguageObject();
// Register the backend user as aspect
$this->setBackendUserAspect(GeneralUtility::makeInstance(Context::class), $GLOBALS['BE_USER']);

return $handler->handle($request);
}
Expand Down

0 comments on commit b315587

Please sign in to comment.