mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Trim createApiKey permissions comment
This commit is contained in:
1 parent
ffce3ca400
commit
59479d04d2
1 file changed
+1
-2
@@ -3151,8 +3151,7 @@ class Appwrite extends Destination
|
||||
try {
|
||||
$this->dbForPlatform->createDocument('keys', new UtopiaDocument([
|
||||
'$id' => ID::unique(),
|
||||
// SDK's Key model doesn't expose $permissions, so we can't copy source perms through.
|
||||
// Mirror appwrite/appwrite's createKey controller so migrated docs match natively-created keys.
|
||||
// Match upstream createKey — keys carry no per-doc perm semantics in Appwrite.
|
||||
'$permissions' => [
|
||||
Permission::read(Role::any()),
|
||||
Permission::update(Role::any()),
|
||||
|
||||
Reference in new issue
Block a user