[BUGFIX] Remove doubled SQL query in PageRepository 54/52754/3
authorBenni Mack <benni@typo3.org>
Thu, 11 May 2017 06:22:13 +0000 (08:22 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 18 May 2017 14:08:07 +0000 (16:08 +0200)
commit9fe9d0a34814475a0ff4127d7fcda3572fb4f50c
treea1bb3d7f534b5e747bae9076ca50f7ac383d54ed
parent4d056965fddd3768d669b7bdcd0a039a3c1ea1ba
[BUGFIX] Remove doubled SQL query in PageRepository

The method PageRepository->checkWorkspaceAccess() does a SQL query to fetch
the workspace record, then hands it over to BE_USER->checkWorkspace which has the
same functionality - to fetch the full workspace record.

As this is redundant code, the PageRepository code can be simplified a lot by just leaving
the workspaceCache property.

Resolves: #81187
Releases: master, 8.7
Change-Id: Ia82febb2269084ea9101acfc36a1c9aa20950290
Reviewed-on: https://review.typo3.org/52754
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/Page/PageRepository.php