Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
|
@ -742,7 +742,7 @@ function node_get_recent($number = 10) {
|
|||
// If the user is able to view their own unpublished nodes, allow them
|
||||
// to see these in addition to published nodes. Check that they actually
|
||||
// have some unpublished nodes to view before adding the condition.
|
||||
$access_query = \Drupal::entityQuery('node')
|
||||
$access_query = \Drupal::entityQuery('node')
|
||||
->condition('uid', $account->id())
|
||||
->condition('status', NODE_NOT_PUBLISHED);
|
||||
if ($account->hasPermission('view own unpublished content') && ($own_unpublished = $access_query->execute())) {
|
||||
|
|
@ -1172,7 +1172,7 @@ function node_access_rebuild($batch_mode = FALSE) {
|
|||
// user does not have access. And unless the current user has the bypass
|
||||
// node access permission, no nodes are accessible since the grants have
|
||||
// just been deleted.
|
||||
$entity_query->accessCheck(false);
|
||||
$entity_query->accessCheck(FALSE);
|
||||
$nids = $entity_query->execute();
|
||||
foreach ($nids as $nid) {
|
||||
$node_storage->resetCache(array($nid));
|
||||
|
|
@ -1227,7 +1227,7 @@ function _node_access_rebuild_batch_operation(&$context) {
|
|||
// user does not have access. And unless the current user has the bypass
|
||||
// node access permission, no nodes are accessible since the grants have
|
||||
// just been deleted.
|
||||
->accessCheck(false)
|
||||
->accessCheck(FALSE)
|
||||
->range(0, $limit)
|
||||
->execute();
|
||||
$node_storage->resetCache($nids);
|
||||
|
|
|
|||
Reference in a new issue