<?xml version="1.0"?>
<!--
  /*
   * @see app/code/Cminds/MultiUserAccounts/Api/Data/SubaccountInterface.php
   * @see app/code/Cminds/MultiUserAccounts/Api/Data/SubaccountTransportInterface.php
   * @see app/code/Cminds/MultiUserAccounts/Model/Data/Subaccount.php
   * @see app/code/Cminds/MultiUserAccounts/Model/Data/SubaccountTransport.php
   */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Cminds\MultiUserAccounts\Block\Adminhtml\Subaccount\Edit\Tab\Permission" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Cminds\MultiUserAccounts\Block\Adminhtml\Subaccount\Edit\Tab\Permission"/>
    <preference for="Cminds\MultiUserAccounts\Block\Manage\Form\Edit" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Cminds\MultiUserAccounts\Block\Manage\Form\Edit"/>
    <preference for="Cminds\MultiUserAccounts\Controller\Adminhtml\Manage\Save" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Cminds\MultiUserAccounts\Controller\Adminhtml\Manage\Save"/>
    <preference for="Cminds\MultiUserAccounts\Controller\Manage\EditPost" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Cminds\MultiUserAccounts\Controller\Manage\EditPost"/>
    <preference for="Cminds\MultiUserAccounts\Model\AccountManagement" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Cminds\MultiUserAccounts\Model\AccountManagement"/>
    <preference for="Cminds\MultiUserAccounts\Model\Permission" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Cminds\MultiUserAccounts\Model\Permission"/>

    <preference for="Magento\Checkout\Model\Session" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Magento\Checkout\Model\Session"/>
    <preference for="Magento\Quote\Model\ResourceModel\Quote" type="DJOGlobal\ExtMultiUserAccounts\Rewrite\Magento\Quote\Model\ResourceModel\Quote"/>

    <type name="Magento\Customer\Block\Account\Navigation">
        <plugin name="DJOGlobal_ExtMultiUserAccounts::RestrictAccountDashboardLinks" type="DJOGlobal\ExtMultiUserAccounts\Plugin\RestrictAccountDashboardLinks" sortOrder="999"/>
    </type>
    <!-- TODO - needed? -->
    <type name="Magento\Checkout\CustomerData\Cart">
        <plugin name="DJOGlobal_ExtMultiUserAccounts::CartHideTotals" type="DJOGlobal\ExtMultiUserAccounts\Plugin\Checkout\CustomerData\CartHideTotals" sortOrder="999"/>
    </type>
</config>
