![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/module-sales/Model/Order/Grid/Row/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Sales\Model\Order\Grid\Row; /** * Sales orders grid row url generator */ class UrlGenerator extends \Magento\Backend\Model\Widget\Grid\Row\UrlGenerator { /** * @var \Magento\Framework\AuthorizationInterface */ protected $_authorization; /** * @param \Magento\Backend\Model\UrlInterface $backendUrl * @param \Magento\Framework\AuthorizationInterface $authorization * @param array $args */ public function __construct( \Magento\Backend\Model\UrlInterface $backendUrl, \Magento\Framework\AuthorizationInterface $authorization, array $args = [] ) { $this->_authorization = $authorization; parent::__construct($backendUrl, $args); } /** * Generate row url * @param \Magento\Framework\DataObject $item * @return bool|string */ public function getUrl($item) { if ($this->_authorization->isAllowed('Magento_Sales::actions_view')) { return parent::getUrl($item); } return false; } }