Skip to content

Add correct admin ACL #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: 2.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
*/
abstract class Banner extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::banner';

/**
* Banner Factory
*
Expand Down
2 changes: 0 additions & 2 deletions Controller/Adminhtml/Banner/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
*/
class Edit extends Banner
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::banner';

/**
* Page factory
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Banner/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
*/
class Index extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::banner';

/**
* Page result factory
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Banner/InlineEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
class InlineEdit extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::banner';

/**
* JSON Factory
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Banner/MassDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
*/
class MassDelete extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::banner';

/**
* Mass Action Filter
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Banner/MassStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
class MassStatus extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::banner';

/**
* Mass Action Filter
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Banner/NewAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
*/
class NewAction extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::banner';

/**
* @return ResponseInterface|ResultInterface|void
*/
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
*/
abstract class Slider extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::slider';

/**
* Slider Factory
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Slider/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
*/
class Index extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::slider';

/**
* Page result factory
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Slider/InlineEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
class InlineEdit extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::slider';

/**
* JSON Factory
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Slider/MassDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
*/
class MassDelete extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::slider';

/**
* Mass Action Filter
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Slider/MassStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
class MassStatus extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::slider';

/**
* Mass Action Filter
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Slider/NewAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
*/
class NewAction extends Action
{
const ADMIN_RESOURCE = 'Mageplaza_BannerSlider::slider';

/**
* @return ResponseInterface|ResultInterface|void
*/
Expand Down