[BUGFIX] Remove doubled SQL query in PageRepository 54/52854/2
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 15:00:54 +0000 (17:00 +0200)
commit3f5effaa6134efaffe2028e65e40d18024506b84
tree3ce8dc53c6d46454553ead9ff867c08477972adf
parentcde94b4b864e622d4ba3012bb804318d35c7a519
[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/52854
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/Page/PageRepository.php