di.xml 956 B

12345678910111213141516171819202122
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <type name="Magento\Framework\Authorization">
  10. <plugin name="customerAuthorization" type="Magento\Customer\Model\Plugin\CustomerAuthorization" />
  11. </type>
  12. <type name="Magento\Authorization\Model\CompositeUserContext">
  13. <arguments>
  14. <argument name="userContexts" xsi:type="array">
  15. <item name="customerSessionUserContext" xsi:type="array">
  16. <item name="type" xsi:type="object">Magento\Customer\Model\Authorization\CustomerSessionUserContext</item>
  17. <item name="sortOrder" xsi:type="string">20</item>
  18. </item>
  19. </argument>
  20. </arguments>
  21. </type>
  22. </config>