From b338ed9a2c1aa1b382a62d5803a9f67e2cfd8cfc Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 12 Feb 2026 12:39:52 +0000 Subject: [PATCH] Pass source document permissions to migrated resources --- src/Appwrite/Platform/Workers/Migrations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 1d7a589e08..f0d0abdda2 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -597,6 +597,7 @@ class Migrations extends Action $platform->getAttribute('store', ''), $platform->getAttribute('hostname', ''), ); + $resource->setPermissions($platform->getPermissions()); $destination->importSettingsResource($resource); } @@ -643,6 +644,7 @@ class Migrations extends Action $key->getAttribute('accessedAt', null), $key->getAttribute('sdks', []), ); + $resource->setPermissions($key->getPermissions()); $destination->importSettingsResource($resource); }