Commit 241a653f authored by alexpott's avatar alexpott

Issue #2752267 by Anicky, handrus, davic, Sagar Ramgade, tstoeckler:...

Issue #2752267 by Anicky, handrus, davic, Sagar Ramgade, tstoeckler: Drupal\node\Entity\Node::access() is dead code
parent 0bbcdf46
......@@ -178,15 +178,10 @@ public function getType() {
* {@inheritdoc}
*/
public function access($operation = 'view', AccountInterface $account = NULL, $return_as_object = FALSE) {
if ($operation == 'create') {
// This override exists to set the operation to the default value "view".
return parent::access($operation, $account, $return_as_object);
}
return \Drupal::entityManager()
->getAccessControlHandler($this->entityTypeId)
->access($this, $operation, $account, $return_as_object);
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment