Skip to content

Commit 0bfdd53

Browse files
committed
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.
1 parent 93715c2 commit 0bfdd53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Migration/Destinations/Appwrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3152,7 +3152,7 @@ protected function createApiKey(ApiKey $resource): bool
31523152
try {
31533153
$this->dbForPlatform->createDocument('keys', new UtopiaDocument([
31543154
'$id' => ID::unique(),
3155-
'$permissions' => [],
3155+
'$permissions' => $resource->getPermissions(),
31563156
'resourceInternalId' => $this->projectInternalId,
31573157
'resourceId' => $this->project,
31583158
'resourceType' => 'projects',

0 commit comments

Comments
 (0)