protected function shouldRenderToolBarElement($element, $elementInformation) { assert('$element instanceof ActionElement'); assert('is_array($elementInformation)'); if (!parent::shouldRenderToolBarElement($element, $elementInformation)) { return false; } return ActionSecurityUtil::canCurrentUserPerformAction($element->getActionType(), $this->model); }