authorization = $authorization; } /** * Remove massaction items in case they disallowed for user * @param mixed $argument * @return mixed */ public function update($argument) { if (false === $this->authorization->isAllowed('Magento_Indexer::changeMode')) { unset($argument['change_mode_onthefly']); unset($argument['change_mode_changelog']); } return $argument; } }