Skip to content

Commit

Permalink
Update to Drupal 8.3.1. For more information, see https://www.drupal.…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantheon Automation authored and greg-1-anderson committed Apr 19, 2017
1 parent 024931c commit bf3942e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions core/CHANGELOG.txt
@@ -1,3 +1,7 @@
Drupal 8.3.1, 2017-04-19
------------------------
- Fixed security issues. See SA-CORE-2017-002.

Drupal 8.3.0, 2017-04-05
------------------------
- Added modules:
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Drupal.php
Expand Up @@ -81,7 +81,7 @@ class Drupal {
/**
* The current system version.
*/
const VERSION = '8.3.0';
const VERSION = '8.3.1';

/**
* Core API compatibility.
Expand Down
13 changes: 13 additions & 0 deletions core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
Expand Up @@ -303,6 +303,19 @@ public function fieldAccess($operation, FieldDefinitionInterface $field_definiti
// Get the default access restriction that lives within this field.
$default = $items ? $items->defaultAccess($operation, $account) : AccessResult::allowed();

// Explicitly disallow changing the entity ID and entity UUID.
if ($operation === 'edit') {
if ($field_definition->getName() === $this->entityType->getKey('id')) {
return $return_as_object ? AccessResult::forbidden('The entity ID cannot be changed') : FALSE;
}
elseif ($field_definition->getName() === $this->entityType->getKey('uuid')) {
// UUIDs can be set when creating an entity.
if ($items && ($entity = $items->getEntity()) && !$entity->isNew()) {
return $return_as_object ? AccessResult::forbidden('The entity UUID cannot be changed')->addCacheableDependency($entity) : FALSE;
}
}
}

// Get the default access restriction as specified by the access control
// handler.
$entity_default = $this->checkFieldAccess($operation, $field_definition, $account, $items);
Expand Down
2 changes: 1 addition & 1 deletion vendor/squizlabs/php_codesniffer/CodeSniffer.conf
@@ -1,5 +1,5 @@
<?php
$phpCodeSnifferConfig = array (
'installed_paths' => '/Users/ganderson/local/upstreams/update-drops8-tmp.roY/drops-8/vendor/drupal/coder/coder_sniffer',
'installed_paths' => '/Users/ganderson/local/upstreams/update-drops8-tmp.8MO/drops-8/vendor/drupal/coder/coder_sniffer',
)
?>

1 comment on commit bf3942e

@pantheon-upstream
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created multidev environment ci-drops-8#c8-55.

Visit Site

Please sign in to comment.