mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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.
This commit is contained in:
1 parent
93715c256b
commit
0bfdd5320e
1 file changed
+1
-1
@@ -3152,7 +3152,7 @@ class Appwrite extends Destination
|
||||
try {
|
||||
$this->dbForPlatform->createDocument('keys', new UtopiaDocument([
|
||||
'$id' => ID::unique(),
|
||||
'$permissions' => [],
|
||||
'$permissions' => $resource->getPermissions(),
|
||||
'resourceInternalId' => $this->projectInternalId,
|
||||
'resourceId' => $this->project,
|
||||
'resourceType' => 'projects',
|
||||
|
||||
Reference in new issue
Block a user