public function hasAction($actionId)
    {
        $sql = '    SELECT COUNT(method.id) AS cnt
                      FROM fusio_routes_method method
                INNER JOIN fusio_routes routes
                        ON routes.id = method.route_id
                     WHERE routes.status = 1
                       AND method.action = :action_id';

        $count = $this->connection->fetchColumn($sql, [
            'action_id' => $actionId,
        ]);

        return $count > 0;
    }