src/Extensions/BetterButtonDataObject.php
public function isCustomActionAllowed($action)
    {
        $actions = $this->owner->config()->better_buttons_actions;
        if ($actions) {
            return in_array($action, $actions);
        }

        return false;
    }
public function isCustomActionAllowed($action)
    {
        $actions = $this->owner->config()->better_buttons_actions;
        if ($actions) {
            return in_array($action, $actions);
        }

        return false;
    }
Checks if a custom action is allowed to be called against a model.
Prevents security risk of calling arbitrary public methods on the DataObject.

Looks at:
<code>
private static $better_buttons_actions = array ()
</code>

@param  string  $action The name of the action
@return boolean