Skip to content

Commit 59479d0

Browse files
committed
Trim createApiKey permissions comment
1 parent ffce3ca commit 59479d0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Migration/Destinations/Appwrite.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,8 +3151,7 @@ protected function createApiKey(ApiKey $resource): bool
31513151
try {
31523152
$this->dbForPlatform->createDocument('keys', new UtopiaDocument([
31533153
'$id' => ID::unique(),
3154-
// SDK's Key model doesn't expose $permissions, so we can't copy source perms through.
3155-
// Mirror appwrite/appwrite's createKey controller so migrated docs match natively-created keys.
3154+
// Match upstream createKey — keys carry no per-doc perm semantics in Appwrite.
31563155
'$permissions' => [
31573156
Permission::read(Role::any()),
31583157
Permission::update(Role::any()),

0 commit comments

Comments
 (0)