Skip to content

Commit

Permalink
Merge pull request #11 from experius/acl-fix
Browse files Browse the repository at this point in the history
[BUGFIX] Fixed acl not being properly defined for controllers
  • Loading branch information
lewisvoncken authored Dec 5, 2018
2 parents a3d1bd3 + 75c1047 commit 8b59aba
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

abstract class Translation extends \Magento\Backend\App\Action
{
const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation';

const ADMIN_RESOURCE = 'Experius_MissingTranslations::top_level';
protected $_coreRegistry;

/**
Expand Down
1 change: 1 addition & 0 deletions Controller/Adminhtml/Translation/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

class Delete extends \Experius\MissingTranslations\Controller\Adminhtml\Translation
{
const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation_delete';

/**
* Delete action
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Translation/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class Edit extends \Experius\MissingTranslations\Controller\Adminhtml\Translation
{

const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation_update';
protected $resultPageFactory;

/**
Expand Down
3 changes: 2 additions & 1 deletion Controller/Adminhtml/Translation/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

class Index extends \Magento\Backend\App\Action
{

const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation_view';

protected $resultPageFactory;

/**
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Translation/InlineEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
*/
class InlineEdit extends \Magento\Backend\App\Action
{
const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation_update';

/**
* @var \Magento\Framework\Controller\Result\JsonFactory
*/
Expand Down
3 changes: 2 additions & 1 deletion Controller/Adminhtml/Translation/NewAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

class NewAction extends \Experius\MissingTranslations\Controller\Adminhtml\Translation
{

const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation_save';

protected $resultPageFactory;

/**
Expand Down
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Translation/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*/
class Save extends \Magento\Backend\App\Action
{
const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation_save';

/**
* @var \Magento\Framework\App\Request\DataPersistorInterface
*/
Expand Down
3 changes: 2 additions & 1 deletion Controller/Adminhtml/Translation/Translate.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

class Translate extends \Experius\MissingTranslations\Controller\Adminhtml\Translation
{

const ADMIN_RESOURCE = 'Experius_MissingTranslations::Translation_view';

protected $resultPageFactory;

/**
Expand Down

0 comments on commit 8b59aba

Please sign in to comment.