X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fcontent_moderation%2Fsrc%2FEntity%2FRouting%2FEntityModerationRouteProvider.php;fp=web%2Fcore%2Fmodules%2Fcontent_moderation%2Fsrc%2FEntity%2FRouting%2FEntityModerationRouteProvider.php;h=1349e1b33b927f49c80be26d5895b1b26018f99a;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=ac6af35d3b4ace6f6deb7a3689667c376e40df2f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php b/web/core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php index ac6af35d3..1349e1b33 100644 --- a/web/core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php +++ b/web/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)