mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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:
1 parent
2c27ede63d
commit
207ab82a6a
1 file changed
+1
-5
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user