Issue Bug Closed

#91045Language overlay does not respect $disableGroupAccessCheck

Remo H. 04/15/20, 14:53 updated 05/12/20, 13:08

Description

When calling getPage on PageRepository with $disableGroupAccessCheck = true, this argument has no effect for language overlays.

Restrictions in Method getPageOverlaysForLanguageUids are hardcoded to frontend context:

$queryBuilder->setRestrictions(GeneralUtility::makeInstance(FrontendRestrictionContainer::class));

This is an issue when generating links, through Solr indexing service. As an example, links to a user (fe_user records) profile page which has an frontend access group.
Generated links will always use the default language slug which leads to invalid links.

Solution: remove group check from restrictions when getPage is called with $disableGroupAccessCheck = true

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.