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 16
16
class View extends \Magento \Backend \Block \Widget \Form \Container
17
17
{
18
18
/**
19
- * Block group
20
- *
21
19
* @var string
22
20
*/
23
21
protected $ _blockGroup = 'Magento_Sales ' ;
24
22
25
23
/**
26
- * Core registry
27
- *
28
24
* @var \Magento\Framework\Registry
29
25
*/
30
26
protected $ _coreRegistry = null ;
31
27
32
28
/**
33
- * Sales config
34
- *
35
29
* @var \Magento\Sales\Model\Config
36
30
*/
37
31
protected $ _salesConfig ;
38
32
39
33
/**
40
- * Reorder helper
41
- *
42
34
* @var \Magento\Sales\Helper\Reorder
43
35
*/
44
36
protected $ _reorderHelper ;
@@ -121,7 +113,7 @@ protected function _construct()
121
113
);
122
114
}
123
115
124
- if ($ this ->_isAllowedAction ('Magento_Sales::emails ' ) && !$ order ->isCanceled ()) {
116
+ if ($ this ->_isAllowedAction ('Magento_Sales::email ' ) && !$ order ->isCanceled ()) {
125
117
$ message = __ ('Are you sure you want to send an order email to customer? ' );
126
118
$ this ->addButton (
127
119
'send_notification ' ,
Original file line number Diff line number Diff line change 6
6
namespace Magento \Sales \Controller \Adminhtml \Order \Creditmemo ;
7
7
8
8
use Magento \Backend \App \Action ;
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
9
10
10
- class Cancel extends \Magento \Backend \App \Action
11
+ class Cancel extends \Magento \Backend \App \Action implements HttpPostActionInterface
11
12
{
12
13
/**
13
14
* Authorization level of a basic admin session
14
15
*
15
16
* @see _isAllowed()
16
17
*/
17
- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18
+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
18
19
19
20
/**
20
21
* @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
15
15
*
16
16
* @see _isAllowed()
17
17
*/
18
- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18
+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
19
19
20
20
/**
21
21
* @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
18
18
*
19
19
* @see _isAllowed()
20
20
*/
21
- public const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
21
+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
22
22
23
23
/**
24
24
* @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
14
14
*
15
15
* @see _isAllowed()
16
16
*/
17
- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
17
+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
18
18
19
19
/**
20
20
* 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
15
15
*
16
16
* @see _isAllowed()
17
17
*/
18
- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18
+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
19
19
20
20
/**
21
21
* @var \Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader
Original file line number Diff line number Diff line change 6
6
namespace Magento \Sales \Controller \Adminhtml \Order \Creditmemo ;
7
7
8
8
use Magento \Backend \App \Action ;
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
9
10
10
- class VoidAction extends Action
11
+ class VoidAction extends Action implements HttpPostActionInterface
11
12
{
12
13
/**
13
14
* Authorization level of a basic admin session
14
15
*
15
16
* @see _isAllowed()
16
17
*/
17
- const ADMIN_RESOURCE = 'Magento_Sales::sales_creditmemo ' ;
18
+ public const ADMIN_RESOURCE = 'Magento_Sales::creditmemo ' ;
18
19
19
20
/**
20
21
* @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
17
17
*
18
18
* @see _isAllowed()
19
19
*/
20
- const ADMIN_RESOURCE = 'Magento_Sales::shipment ' ;
20
+ public const ADMIN_RESOURCE = 'Magento_Sales::ship ' ;
21
21
22
22
/**
23
23
* @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
22
22
*
23
23
* @see _isAllowed()
24
24
*/
25
- const ADMIN_RESOURCE = 'Magento_Sales::shipment ' ;
25
+ public const ADMIN_RESOURCE = 'Magento_Sales::ship ' ;
26
26
27
27
/**
28
28
* @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
15
15
*
16
16
* @see _isAllowed()
17
17
*/
18
- const ADMIN_RESOURCE = 'Magento_Sales::shipment ' ;
18
+ public const ADMIN_RESOURCE = 'Magento_Sales::ship ' ;
19
19
20
20
/**
21
21
* Start create shipment action
You can’t perform that action at this time.
0 commit comments