protected function _getAllowedActions()
    {
        $actions = $this->_action()->getConfig('scaffold.actions');
        if ($actions === null) {
            $actions = array_keys($this->_crud()->getConfig('actions'));
        }

        $extraActions = $this->_action()->getConfig('scaffold.extra_actions') ?: [];

        $allActions = array_merge(
            $this->_normalizeActions($actions),
            $this->_normalizeActions($extraActions)
        );

        $blacklist = (array)$this->_action()->getConfig('scaffold.actions_blacklist');
        $blacklist = array_combine($blacklist, $blacklist);
        foreach ($this->_crud()->getConfig('actions') as $action => $config) {
            if ($config['className'] === 'Crud.Lookup') {
                $blacklist[$action] = $action;
            }
        }

        return array_diff_key($allActions, $blacklist);
    }