Commit 86c9b347 authored by catch's avatar catch
Browse files

Issue #2980405 by mbovan: Fix "view all unpublished content" documentation leftover

parent e74d54b5
......@@ -81,7 +81,7 @@ protected function getLatestVersionRoute(EntityTypeInterface $entity_type) {
'_title_callback' => '\Drupal\Core\Entity\Controller\EntityController::title',
// If the entity type is a node, unpublished content will be visible
// if the user has the "view all unpublished content" permission.
// if the user has the "view any unpublished content" permission.
->setRequirement('_entity_access', "{$entity_type_id}.view")
->setRequirement('_content_moderation_latest_version', 'TRUE')
->setOption('_content_moderation_entity_type', $entity_type_id)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment