diff --git a/src/lib/UniversalDiscovery/UniversalDiscoveryProvider.php b/src/lib/UniversalDiscovery/UniversalDiscoveryProvider.php index 4cc3ed19f9..0fee6be845 100644 --- a/src/lib/UniversalDiscovery/UniversalDiscoveryProvider.php +++ b/src/lib/UniversalDiscovery/UniversalDiscoveryProvider.php @@ -191,6 +191,11 @@ public function getLocationPermissionRestrictions(Location $location): array [Limitation::CONTENTTYPE, Limitation::LANGUAGE] ); + $updateLimitationsValues = $this->lookupLimitationsTransformer->getGroupedLimitationValues( + $lookupCreateLimitationsResult, + [Limitation::CONTENTTYPE, Limitation::LANGUAGE] + ); + return [ 'create' => [ 'hasAccess' => $lookupCreateLimitationsResult->hasAccess, @@ -199,6 +204,8 @@ public function getLocationPermissionRestrictions(Location $location): array ], 'edit' => [ 'hasAccess' => $lookupUpdateLimitationsResult->hasAccess, + 'restrictedContentTypeIds' => $updateLimitationsValues[Limitation::CONTENTTYPE], + 'restrictedLanguageCodes' => $updateLimitationsValues[Limitation::LANGUAGE], ], ]; }