diff --git a/app/http.php b/app/http.php index 68bf3959d8..f7dfbc5cff 100644 --- a/app/http.php +++ b/app/http.php @@ -129,6 +129,8 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) { $attributes = []; $indexes = []; + $permissions = $collection['$permissions'] ?? ['read(any)', 'write(any)']; + $documentSecurity = $collection['documentSecurity'] ?? false; foreach ($collection['attributes'] as $attribute) { $attributes[] = new Document([ @@ -154,7 +156,7 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) { ]); } - $dbForConsole->createCollection($key, $attributes, $indexes); + $dbForConsole->createCollection($key, $attributes, $indexes, $permissions, $documentSecurity); } if ($dbForConsole->getDocument('buckets', 'default')->isEmpty()) {