Actions
Bug #103611
openUse WorkspaceRestriction in BackendUtility only if workspace is loaded
Start date:
2024-04-11
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
backendutility workspace
Complexity:
Is Regression:
Sprint Focus:
Description
The function getRecordLocalization throws an error, because WorkspaceRestriction:class is called, even workspace module isn't loaded. Please add a check before.
$queryBuilder->getRestrictions()
->removeAll()
->add(GeneralUtility::makeInstance(DeletedRestriction::class))
->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, static::getBackendUserAuthentication()->workspace));
No data to display
Actions