File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/lib/UniversalDiscovery Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,11 @@ public function getLocationPermissionRestrictions(Location $location): array
191191 [Limitation::CONTENTTYPE , Limitation::LANGUAGE ]
192192 );
193193
194+ $ updateLimitationsValues = $ this ->lookupLimitationsTransformer ->getGroupedLimitationValues (
195+ $ lookupCreateLimitationsResult ,
196+ [Limitation::CONTENTTYPE , Limitation::LANGUAGE ]
197+ );
198+
194199 return [
195200 'create ' => [
196201 'hasAccess ' => $ lookupCreateLimitationsResult ->hasAccess ,
@@ -199,6 +204,8 @@ public function getLocationPermissionRestrictions(Location $location): array
199204 ],
200205 'edit ' => [
201206 'hasAccess ' => $ lookupUpdateLimitationsResult ->hasAccess ,
207+ 'restrictedContentTypeIds ' => $ updateLimitationsValues [Limitation::CONTENTTYPE ],
208+ 'restrictedLanguageCodes ' => $ updateLimitationsValues [Limitation::LANGUAGE ],
202209 ],
203210 ];
204211 }
You can’t perform that action at this time.
0 commit comments