Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_moderation / src / Entity / Routing / EntityModerationRouteProvider.php
index ac6af35d3b4ace6f6deb7a3689667c376e40df2f..1349e1b33b927f49c80be26d5895b1b26018f99a 100644 (file)
@@ -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)