mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
added read and write permissions
This commit is contained in:
parent
9dab76f357
commit
c2ce37e6f3
1 changed files with 2 additions and 0 deletions
|
|
@ -2213,6 +2213,8 @@ trait DatabaseBase
|
|||
'data' => [
|
||||
'title' => 'Captain America',
|
||||
],
|
||||
'read' => ['user:' . $this->getUser()['$id']],
|
||||
'write' => ['user:' . $this->getUser()['$id']],
|
||||
]);
|
||||
|
||||
$id = $document['body']['$id'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue