kuzzle 2.50.1-beta.3 → 2.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -319,11 +319,13 @@ class HotelClerk {
|
|
|
319
319
|
}, {});
|
|
320
320
|
for (const [index, collections] of Object.entries(fullStateRooms)) {
|
|
321
321
|
isAllowedRequest.input.resource.index = index;
|
|
322
|
-
const toRemove =
|
|
322
|
+
const toRemove = [];
|
|
323
|
+
for (const collection of Object.keys(collections)) {
|
|
323
324
|
isAllowedRequest.input.resource.collection = collection;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
if (!user.isActionAllowed(isAllowedRequest)) {
|
|
326
|
+
toRemove.push(collection);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
327
329
|
for (const collection of toRemove) {
|
|
328
330
|
delete fullStateRooms[index][collection];
|
|
329
331
|
}
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.50.
|
|
4
|
+
"version": "2.50.2",
|
|
5
5
|
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rm -Rf ./dist && tsc && node ./bin/copy-protobuf.js",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.50.
|
|
4
|
+
"version": "2.50.2",
|
|
5
5
|
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rm -Rf ./dist && tsc && node ./bin/copy-protobuf.js",
|