File tree Expand file tree Collapse file tree 9 files changed +58
-8
lines changed
Backend/Controller/Adminhtml/System
Sales/Controller/Adminhtml/Order/Invoice
dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Invoice Expand file tree Collapse file tree 9 files changed +58
-8
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ abstract class Design extends Action
14
14
*
15
15
* @see _isAllowed()
16
16
*/
17
- const ADMIN_RESOURCE = 'Magento_Backend::design ' ;
17
+ public const ADMIN_RESOURCE = 'Magento_Backend::schedule ' ;
18
18
19
19
/**
20
- * Core registry
20
+ * Core registry instance
21
21
*
22
22
* @var \Magento\Framework\Registry
23
23
*/
Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Sales \Controller \Adminhtml \Order \Invoice ;
8
8
9
- class Cancel extends \Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
+ use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View ;
11
+
12
+ class Cancel extends View implements HttpPostActionInterface
10
13
{
14
+ /**
15
+ * Authorization level of a basic admin session
16
+ *
17
+ * @see _isAllowed()
18
+ */
19
+ public const ADMIN_RESOURCE = 'Magento_Sales::invoice ' ;
20
+
11
21
/**
12
22
* Cancel invoice action
13
23
*
Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Sales \Controller \Adminhtml \Order \Invoice ;
8
8
9
- class Capture extends \Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
+ use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View ;
11
+
12
+ class Capture extends View implements HttpPostActionInterface
10
13
{
14
+ /**
15
+ * Authorization level of a basic admin session
16
+ *
17
+ * @see _isAllowed()
18
+ */
19
+ public const ADMIN_RESOURCE = 'Magento_Sales::invoice ' ;
20
+
11
21
/**
12
22
* Capture invoice action
13
23
*
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class NewAction extends \Magento\Backend\App\Action implements HttpGetActionInte
23
23
*
24
24
* @see _isAllowed()
25
25
*/
26
- const ADMIN_RESOURCE = 'Magento_Sales::sales_invoice ' ;
26
+ public const ADMIN_RESOURCE = 'Magento_Sales::invoice ' ;
27
27
28
28
/**
29
29
* @var Registry
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Save extends \Magento\Backend\App\Action implements HttpPostActionInterfac
30
30
*
31
31
* @see _isAllowed()
32
32
*/
33
- public const ADMIN_RESOURCE = 'Magento_Sales::sales_invoice ' ;
33
+ public const ADMIN_RESOURCE = 'Magento_Sales::invoice ' ;
34
34
35
35
/**
36
36
* @var InvoiceSender
Original file line number Diff line number Diff line change 10
10
11
11
class Start extends \Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View implements HttpGetActionInterface
12
12
{
13
+ /**
14
+ * Authorization level of a basic admin session
15
+ *
16
+ * @see _isAllowed()
17
+ */
18
+ public const ADMIN_RESOURCE = 'Magento_Sales::invoice ' ;
19
+
13
20
/**
14
21
* Start create invoice action
15
22
*
Original file line number Diff line number Diff line change 18
18
use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View as AbstractView ;
19
19
20
20
/**
21
- * Class UpdateQty
21
+ * Class UpdateQty to update invoice items qty
22
+ *
22
23
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
23
24
*/
24
25
class UpdateQty extends AbstractView implements HttpPostActionInterface
25
26
{
27
+ /**
28
+ * Authorization level of a basic admin session
29
+ *
30
+ * @see _isAllowed()
31
+ */
32
+ public const ADMIN_RESOURCE = 'Magento_Sales::invoice ' ;
33
+
26
34
/**
27
35
* @var JsonFactory
28
36
*/
Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Sales \Controller \Adminhtml \Order \Invoice ;
8
8
9
- class VoidAction extends \Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
+ use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View ;
11
+
12
+ class VoidAction extends View implements HttpPostActionInterface
10
13
{
14
+ /**
15
+ * Authorization level of a basic admin session
16
+ *
17
+ * @see _isAllowed()
18
+ */
19
+ public const ADMIN_RESOURCE = 'Magento_Sales::invoice ' ;
20
+
11
21
/**
12
22
* Void invoice action
13
23
*
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ class SaveTest extends AbstractInvoiceControllerTest
33
33
/** @var Item */
34
34
private $ orderItemResource ;
35
35
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $ resource = "Magento_Sales::invoice " ;
40
+
36
41
/**
37
42
* @inheritdoc
38
43
*/
You can’t perform that action at this time.
0 commit comments