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.
This commit is contained in:
Prem Palanisamy committed 2026-05-14 09:44:44 +01:00
1 parent 2c27ede63d
commit 207ab82a6a
1 file changed
+1 -5
+1 -5
View File
@@ -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,