Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_moderation / src / Access / LatestRevisionCheck.php
index e1719396d40d30f3592828892c3a7994defa593c..e470237448e9f8ba8097564b946380a0cdf4a335 100644 (file)
@@ -68,7 +68,7 @@ class LatestRevisionCheck implements AccessInterface {
       return $access_result->addCacheableDependency($entity);
     }
 
-    return AccessResult::forbidden()->addCacheableDependency($entity);
+    return AccessResult::forbidden('No pending revision for moderated entity.')->addCacheableDependency($entity);
   }
 
   /**