From 0bfdd5320e2d37dcb4bee6b778a563cbc9d7ad54 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 14 May 2026 16:17:54 +0100 Subject: [PATCH] Pass through resource permissions to createApiKey Mirror createPlatform's pattern. Resolves to [] today since the SDK doesn't expose $permissions on Key responses, matching the upstream createKey endpoint default. Hook is in place if/when the SDK starts emitting permissions. --- src/Migration/Destinations/Appwrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 04e6cf96bf..1b7c4d2362 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -3152,7 +3152,7 @@ class Appwrite extends Destination try { $this->dbForPlatform->createDocument('keys', new UtopiaDocument([ '$id' => ID::unique(), - '$permissions' => [], + '$permissions' => $resource->getPermissions(), 'resourceInternalId' => $this->projectInternalId, 'resourceId' => $this->project, 'resourceType' => 'projects',