From 207ab82a6ab0afc4bcd4fbff311c57e0f8cbc533 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 14 May 2026 09:44:44 +0100 Subject: [PATCH] Mirror createPlatform: use resource-supplied permissions for keys Matches the existing platform pattern. Source-side SDK Key model doesn't expose $permissions today so this is [] in practice (same as platforms), but the hook is in place for when source can populate it. --- src/Migration/Destinations/Appwrite.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 8f300cdd9c..a97b57177c 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -3151,11 +3151,7 @@ class Appwrite extends Destination try { $this->dbForPlatform->createDocument('keys', new UtopiaDocument([ '$id' => ID::unique(), - '$permissions' => [ - Permission::read(Role::any()), - Permission::update(Role::any()), - Permission::delete(Role::any()), - ], + '$permissions' => $resource->getPermissions(), 'projectInternalId' => $this->projectInternalId, 'projectId' => $this->project, 'resourceInternalId' => $this->projectInternalId,