Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / views / src / ViewAccessControlHandler.php
diff --git a/web/core/modules/views/src/ViewAccessControlHandler.php b/web/core/modules/views/src/ViewAccessControlHandler.php
deleted file mode 100644 (file)
index f28148b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-namespace Drupal\views;
-
-use Drupal\Core\Access\AccessResult;
-use Drupal\Core\Entity\EntityAccessControlHandler;
-use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Session\AccountInterface;
-
-/**
- * Defines the access control handler for the view entity type.
- *
- * @see \Drupal\views\Entity\View
- */
-class ViewAccessControlHandler extends EntityAccessControlHandler {
-
-  /**
-   * {@inheritdoc}
-   */
-  public function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
-    if ($operation == 'view') {
-      return AccessResult::allowed();
-    }
-    else {
-      return parent::checkAccess($entity, $operation, $account);
-    }
-  }
-
-}