Project

General

Profile

Actions

Bug #103611

open

Use WorkspaceRestriction in BackendUtility only if workspace is loaded

Added by Sven Wappler 24 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
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

Also available in: Atom PDF