Bug #105183
closedFrontendRestrictionContainer applied in BE context while in workspace
0%
Description
We try to load a model, which has assigned fe_groups, per magic "findBy" method from a repository while being in BE context. Relations on models show the same behaviour.
Problem
When the BE user is in a workspace PageRepository->getWorkspaceVersionOfRecord() is called. There gets a FrontendRestrictionContainer applied to the querybuilder without checking the context:
// If version found, check if it could have been selected with enableFields on
// as well:
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($table);
$queryBuilder->setRestrictions(GeneralUtility::makeInstance(FrontendRestrictionContainer::class, $this->context));
This causes models restricted by fe_groups to not be loaded in BE context.
Updated by Benni Mack 7 months ago
- Status changed from New to Needs Feedback
thank you for report and sorry for not getting back to you sooner.
we've overcome this in v12, can you let me know if this issue persists in v12+?
Updated by Riccardo De Contardi 3 months ago
- Status changed from Needs Feedback to Closed
I hope it is safe to close this one for lack of feedback
If you think that this is the wrong decision or experience the issue again, please reopen it or ping me and I'll do it
Thank you.