diff --git a/src/lib/Permission/LimitationResolver.php b/src/lib/Permission/LimitationResolver.php index 7fba67ed8a..dd1ceadae6 100644 --- a/src/lib/Permission/LimitationResolver.php +++ b/src/lib/Permission/LimitationResolver.php @@ -96,13 +96,16 @@ public function getLanguageLimitations( array $targets = [] ): array { $languages = !empty($languages) ? $languages : $this->languageService->loadLanguages(); + $versionBuilder = new VersionBuilder(); + $versionBuilder->translateToAnyLanguageOf($this->getActiveLanguageCodes($languages)); + $lookupLimitations = $this->permissionResolver->lookupLimitations( 'content', $function, $valueObject, array_merge( $targets, - [(new VersionBuilder())->translateToAnyLanguageOf($this->getActiveLanguageCodes($languages))->build()] + [$versionBuilder->build()] ), [Limitation::LANGUAGE] );