Accept default permissions from Utopia for now
This commit is contained in:
parent
5bcb51ab5b
commit
9aad04b484
1 changed files with 3 additions and 2 deletions
|
@ -49,8 +49,9 @@ App::post('/v1/database/collections')
|
|||
$write = (is_null($write)) ? ($collection->getWrite() ?? []) : $write; // By default inherit write permissions
|
||||
|
||||
$collection->setAttribute('name', $name);
|
||||
$collection->setAttribute('$read', $read);
|
||||
$collection->setAttribute('$write', $write);
|
||||
// TODO@kodumbeats Use the default permissions from Utopia for now
|
||||
// $collection->setAttribute('$read', $read);
|
||||
// $collection->setAttribute('$write', $write);
|
||||
|
||||
$dbForExternal->updateDocument(Database::COLLECTIONS, $id, $collection);
|
||||
|
||||
|
|
Loading…
Reference in a new issue