File tree Expand file tree Collapse file tree 13 files changed +26
-23
lines changed
Controller/Adminhtml/Order/Creditmemo
Controller/Adminhtml/Order/Shipment
dev/tests/integration/testsuite/Magento
Sales/Controller/Adminhtml/Order/Creditmemo
Shipping/Controller/Adminhtml/Order/Shipment Expand file tree Collapse file tree 13 files changed +26
-23
lines changed Original file line number Diff line number Diff line change 1616class View extends \Magento \Backend \Block \Widget \Form \Container
1717{
1818 /**
19- * Block group
20- *
2119 * @var string
2220 */
2321 protected $ _blockGroup = 'Magento_Sales ' ;
2422
2523 /**
26- * Core registry
27- *
2824 * @var \Magento\Framework\Registry
2925 */
3026 protected $ _coreRegistry = null ;
3127
3228 /**
33- * Sales config
34- *
3529 * @var \Magento\Sales\Model\Config
3630 */
3731 protected $ _salesConfig ;
3832
3933 /**
40- * Reorder helper
41- *
4234 * @var \Magento\Sales\Helper\Reorder
4335 */
4436 protected $ _reorderHelper ;
@@ -121,7 +113,7 @@ protected function _construct()
121113 );
122114 }
123115
124- if ($ this ->_isAllowedAction ('Magento_Sales::emails ' ) && !$ order ->isCanceled ()) {
116+ if ($ this ->_isAllowedAction ('Magento_Sales::email ' ) && !$ order ->isCanceled ()) {
125117 $ message = __ ('Are you sure you want to send an order email to customer? ' );
126118 $ this ->addButton (
127119 'send_notification ' ,
Original file line number Diff line number Diff line change 66namespace Magento \Sales \Controller \Adminhtml \Order \Creditmemo ;
77
88use Magento \Backend \App \Action ;
9+ use Magento \Framework \App \Action \HttpPostActionInterface ;
910
10- class Cancel extends \Magento \Backend \App \Action
11+ class Cancel extends \Magento \Backend \App \Action implements HttpPostActionInterface
1112{
1213 /**
1314 * Authorization level of a basic admin session
1415 *
1516 * @see _isAllowed()
1617 */
17- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
1819
1920 /**
2021 * @var \Magento\Backend\Model\View\Result\ForwardFactory
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class NewAction extends \Magento\Backend\App\Action implements HttpGetActionInte
1515 *
1616 * @see _isAllowed()
1717 */
18- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
1919
2020 /**
2121 * @var \Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Save extends \Magento\Backend\App\Action implements HttpPostActionInterfac
1818 *
1919 * @see _isAllowed()
2020 */
21- public const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
21+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
2222
2323 /**
2424 * @var \Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Start extends \Magento\Backend\App\Action implements HttpGetActionInterfac
1414 *
1515 * @see _isAllowed()
1616 */
17- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
17+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
1818
1919 /**
2020 * Start create creditmemo action
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class UpdateQty extends \Magento\Backend\App\Action implements HttpPostActionInt
1515 *
1616 * @see _isAllowed()
1717 */
18- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
1919
2020 /**
2121 * @var \Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader
Original file line number Diff line number Diff line change 66namespace Magento \Sales \Controller \Adminhtml \Order \Creditmemo ;
77
88use Magento \Backend \App \Action ;
9+ use Magento \Framework \App \Action \HttpPostActionInterface ;
910
10- class VoidAction extends Action
11+ class VoidAction extends Action implements HttpPostActionInterface
1112{
1213 /**
1314 * Authorization level of a basic admin session
1415 *
1516 * @see _isAllowed()
1617 */
17- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
1819
1920 /**
2021 * @var \Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class NewAction extends \Magento\Backend\App\Action implements HttpGetActionInte
1717 *
1818 * @see _isAllowed()
1919 */
20- const ADMIN_RESOURCE = 'Magento_Sales::shipment ' ;
20+ public const ADMIN_RESOURCE = 'Magento_Sales::ship ' ;
2121
2222 /**
2323 * @var \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Save extends \Magento\Backend\App\Action implements HttpPostActionInterfac
2222 *
2323 * @see _isAllowed()
2424 */
25- const ADMIN_RESOURCE = 'Magento_Sales::shipment ' ;
25+ public const ADMIN_RESOURCE = 'Magento_Sales::ship ' ;
2626
2727 /**
2828 * @var \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Start extends \Magento\Backend\App\Action implements HttpGetActionInterfac
1515 *
1616 * @see _isAllowed()
1717 */
18- const ADMIN_RESOURCE = 'Magento_Sales::shipment ' ;
18+ public const ADMIN_RESOURCE = 'Magento_Sales::ship ' ;
1919
2020 /**
2121 * Start create shipment action
You can’t perform that action at this time.
0 commit comments