Commit 3641d2ec authored by agoradesign's avatar agoradesign Committed by bojanz

Issue #2945286 by agoradesign, mglaman, bojanz: The "access overview"...

Issue #2945286 by agoradesign, mglaman, bojanz: The "access overview" permission is not used/respected
parent 845eb286
......@@ -3,7 +3,7 @@
namespace Drupal\commerce_order;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
use Drupal\entity\Routing\AdminHtmlRouteProvider;
/**
* Provides routes for the Order entity.
......
......@@ -29,7 +29,7 @@ use Drupal\user\UserInterface;
* "event" = "Drupal\commerce_product\Event\ProductEvent",
* "storage" = "Drupal\commerce\CommerceContentEntityStorage",
* "access" = "Drupal\entity\EntityAccessControlHandler",
* "permission_provider" = "Drupal\commerce\EntityPermissionProvider",
* "permission_provider" = "Drupal\entity\EntityPermissionProvider",
* "view_builder" = "Drupal\commerce_product\ProductViewBuilder",
* "list_builder" = "Drupal\commerce_product\ProductListBuilder",
* "views_data" = "Drupal\views\EntityViewsData",
......@@ -40,7 +40,7 @@ use Drupal\user\UserInterface;
* "delete" = "Drupal\Core\Entity\ContentEntityDeleteForm"
* },
* "route_provider" = {
* "default" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
* "default" = "Drupal\entity\Routing\AdminHtmlRouteProvider",
* "delete-multiple" = "Drupal\entity\Routing\DeleteMultipleRouteProvider",
* },
* "translation" = "Drupal\commerce_product\ProductTranslationHandler"
......
......@@ -20,7 +20,7 @@ use Drupal\Core\Entity\EntityStorageInterface;
* ),
* handlers = {
* "access" = "Drupal\entity\EntityAccessControlHandler",
* "permission_provider" = "Drupal\commerce\EntityPermissionProvider",
* "permission_provider" = "Drupal\entity\EntityPermissionProvider",
* "list_builder" = "Drupal\commerce_product\ProductAttributeListBuilder",
* "form" = {
* "add" = "Drupal\commerce_product\Form\ProductAttributeForm",
......@@ -28,7 +28,7 @@ use Drupal\Core\Entity\EntityStorageInterface;
* "delete" = "Drupal\commerce_product\Form\ProductAttributeDeleteForm",
* },
* "route_provider" = {
* "default" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
* "default" = "Drupal\entity\Routing\DefaultHtmlRouteProvider",
* },
* },
* config_prefix = "commerce_product_attribute",
......
......@@ -29,7 +29,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
* "event" = "Drupal\commerce_promotion\Event\PromotionEvent",
* "storage" = "Drupal\commerce_promotion\PromotionStorage",
* "access" = "Drupal\entity\EntityAccessControlHandler",
* "permission_provider" = "Drupal\commerce\EntityPermissionProvider",
* "permission_provider" = "Drupal\entity\EntityPermissionProvider",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\commerce_promotion\PromotionListBuilder",
* "views_data" = "Drupal\views\EntityViewsData",
......@@ -40,7 +40,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
* "delete" = "Drupal\Core\Entity\ContentEntityDeleteForm"
* },
* "route_provider" = {
* "default" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
* "default" = "Drupal\entity\Routing\AdminHtmlRouteProvider",
* "delete-multiple" = "Drupal\entity\Routing\DeleteMultipleRouteProvider",
* },
* "translation" = "Drupal\content_translation\ContentTranslationHandler"
......
......@@ -28,7 +28,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
* "event" = "Drupal\commerce_store\Event\StoreEvent",
* "storage" = "Drupal\commerce_store\StoreStorage",
* "access" = "Drupal\entity\EntityAccessControlHandler",
* "permission_provider" = "Drupal\commerce\EntityPermissionProvider",
* "permission_provider" = "Drupal\entity\EntityPermissionProvider",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\commerce_store\StoreListBuilder",
* "views_data" = "Drupal\views\EntityViewsData",
......@@ -39,7 +39,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
* "delete" = "Drupal\Core\Entity\ContentEntityDeleteForm"
* },
* "route_provider" = {
* "default" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
* "default" = "Drupal\entity\Routing\AdminHtmlRouteProvider",
* "delete-multiple" = "Drupal\entity\Routing\DeleteMultipleRouteProvider",
* },
* "translation" = "Drupal\content_translation\ContentTranslationHandler"
......
......@@ -7,6 +7,8 @@ use Drupal\entity\EntityPermissionProvider as BaseEntityPermissionProvider;
/**
* Provides Commerce entity permissions.
*
* @see \Drupal\entity\EntityPermissionProvider
* Note: This code has moved to Entity API, see the parent class.
*
* @deprecated in Commerce 2.0
*/
class EntityPermissionProvider extends BaseEntityPermissionProvider {}
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