_blockGroup = 'Sm_MegaMenu'; $this->_controller = 'adminhtml_menuGroup'; $this->_headerText = __('Manager Menu'); parent::_construct(); if ($this->_isAllowedAction('Sm_MegaMenu::save')) { $this->buttonList->update('add', 'label', __('Add New Menu')); } else { $this->buttonList->remove('add'); } } protected function _isAllowedAction($resourceId) { return $this->_authorization->isAllowed($resourceId); } }