1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

Accept default permissions from Utopia for now

This commit is contained in:
kodumbeats 2021-06-18 15:27:03 -04:00
parent 5bcb51ab5b
commit 9aad04b484

View file

@ -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);