summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-06-21 21:40:40 (GMT)
committerNathaniel Catchpole2018-06-21 21:40:40 (GMT)
commit86c9b347fdfbc18cff3d8217a1a888fb2ed34ed0 (patch)
tree313fe4f155774bf54a78cd783ee048180d7b6b91
parente74d54b5b58bf283b8c8a40913cf47b88f823829 (diff)
Issue #2980405 by mbovan: Fix "view all unpublished content" documentation leftover
-rw-r--r--core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php b/core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php
index ac6af35..1349e1b 100644
--- a/core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php
+++ b/core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php
@@ -81,7 +81,7 @@ class EntityModerationRouteProvider implements EntityRouteProviderInterface, Ent
'_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)