fix: Add missing Authorization parameter to Columns XList action

The TablesDB Columns XList::action() method was missing the
Authorization $authorization parameter that exists in the parent
Attributes XList class, causing a PHP fatal error that prevented
the appwrite service from starting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-02-12 23:57:51 +13:00
co-authored by Claude Opus 4.6
parent 638778413d
commit d3e6c48a59
@@ -9,6 +9,7 @@ use Appwrite\SDK\Response as SDKResponse;
use Appwrite\Utopia\Database\Validator\Queries\Columns;
use Appwrite\Utopia\Response as UtopiaResponse;
use Utopia\Database\Database;
use Utopia\Database\Validator\Authorization;
use Utopia\Database\Validator\UID;
use Utopia\Http\Adapter\Swoole\Response as SwooleResponse;
use Utopia\Validator\Boolean;
@@ -57,9 +58,9 @@ class XList extends AttributesXList
->callback($this->action(...));
}
public function action(string $databaseId, string $tableId, array $queries, bool $includeTotal, UtopiaResponse $response, Database $dbForProject): void
public function action(string $databaseId, string $tableId, array $queries, bool $includeTotal, UtopiaResponse $response, Database $dbForProject, Authorization $authorization): void
{
// Call parent action with tableId as collectionId since they refer to the same resource
parent::action($databaseId, $tableId, $queries, $includeTotal, $response, $dbForProject);
parent::action($databaseId, $tableId, $queries, $includeTotal, $response, $dbForProject, $authorization);
}
}