Skip to content

Commit

Permalink
EZP-31742: UDW error for users with restricted content types (#1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev authored Jul 21, 2020
1 parent 43c2701 commit 8c52272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/UniversalDiscovery/Event/Subscriber/ContentCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ private function getRestrictedContentTypesIdentifiers($hasAccess): array

$restrictedContentTypes = $this->contentTypeService->loadContentTypeList($restrictedContentTypesIds);

return array_map(function (ContentType $contentType): string {
return array_values(array_map(function (ContentType $contentType): string {
return $contentType->identifier;
}, (array)$restrictedContentTypes);
}, (array)$restrictedContentTypes));
}

/**
Expand Down

0 comments on commit 8c52272

Please # to comment.