summaryrefslogtreecommitdiffstats
path: root/core/modules/rest/src/Plugin/ResourceBase.php
diff options
context:
space:
mode:
authorAlex Pott2015-02-27 12:47:26 (GMT)
committerAlex Pott2015-02-27 12:47:26 (GMT)
commit9c2b19cdaa075dfce3a15010d3d6c22aff9816ed (patch)
treedf93312e01330f41d0c369a43550ccb16959b467 /core/modules/rest/src/Plugin/ResourceBase.php
parentca35085f8a877c1372204f33de1273a66cd88a26 (diff)
Issue #2431281 by dawehner: Drop support for _access_mode routes and always assume ALL
Diffstat (limited to 'core/modules/rest/src/Plugin/ResourceBase.php')
-rw-r--r--core/modules/rest/src/Plugin/ResourceBase.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/modules/rest/src/Plugin/ResourceBase.php b/core/modules/rest/src/Plugin/ResourceBase.php
index d0d22a3..70d6268 100644
--- a/core/modules/rest/src/Plugin/ResourceBase.php
+++ b/core/modules/rest/src/Plugin/ResourceBase.php
@@ -206,12 +206,6 @@ abstract class ResourceBase extends PluginBase implements ContainerFactoryPlugin
// The HTTP method is a requirement for this route.
'_method' => $method,
'_permission' => "restful $lower_method $this->pluginId",
- ), array(
- // All access restrictions on this route must grant access because the
- // permission AND the CSRF protection added in
- // \Drupal\rest\Routing\ResourceRoutes::alterRoutes() must be taken into
- // account.
- '_access_mode' => AccessManagerInterface::ACCESS_MODE_ALL,
));
return $route;
}