-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from magento-okapis/okapis-2.0.11-pr
Fixed issue: - MAGETWO-57002: [Backport] - Admin user with access to only one website is unable to edit a product - for 2.0 - MAGETWO-57715: [Backport] - User with permissions restricted to a single store can view orders on all stores for 2.0.x
- Loading branch information
Showing
5 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
app/code/Magento/Sales/Model/ResourceModel/Order/Grid/Collection.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* Copyright © 2016 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Sales\Model\ResourceModel\Order\Grid; | ||
|
||
use Magento\Framework\Data\Collection\Db\FetchStrategyInterface as FetchStrategy; | ||
use Magento\Framework\Data\Collection\EntityFactoryInterface as EntityFactory; | ||
use Magento\Framework\Event\ManagerInterface as EventManager; | ||
use Psr\Log\LoggerInterface as Logger; | ||
|
||
/** | ||
* Order grid collection | ||
*/ | ||
class Collection extends \Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult | ||
{ | ||
/** | ||
* Initialize dependencies. | ||
* | ||
* @param EntityFactory $entityFactory | ||
* @param Logger $logger | ||
* @param FetchStrategy $fetchStrategy | ||
* @param EventManager $eventManager | ||
* @param string $mainTable | ||
* @param string $resourceModel | ||
*/ | ||
public function __construct( | ||
EntityFactory $entityFactory, | ||
Logger $logger, | ||
FetchStrategy $fetchStrategy, | ||
EventManager $eventManager, | ||
$mainTable = 'sales_order_grid', | ||
$resourceModel = '\Magento\Sales\Model\ResourceModel\Order' | ||
) { | ||
parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $mainTable, $resourceModel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters