kuzzle 2.50.1-beta.2 → 2.50.1
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,9 +319,10 @@ class HotelClerk {
|
|
|
319
319
|
}, {});
|
|
320
320
|
for (const [index, collections] of Object.entries(fullStateRooms)) {
|
|
321
321
|
isAllowedRequest.input.resource.index = index;
|
|
322
|
-
const toRemove = await bluebird_1.default.filter(Object.keys(collections), (collection) => {
|
|
322
|
+
const toRemove = await bluebird_1.default.filter(Object.keys(collections), async (collection) => {
|
|
323
323
|
isAllowedRequest.input.resource.collection = collection;
|
|
324
|
-
|
|
324
|
+
const result = await user.isActionAllowed(isAllowedRequest);
|
|
325
|
+
return !result;
|
|
325
326
|
});
|
|
326
327
|
for (const collection of toRemove) {
|
|
327
328
|
delete fullStateRooms[index][collection];
|
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.1
|
|
4
|
+
"version": "2.50.1",
|
|
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.1
|
|
4
|
+
"version": "2.50.1",
|
|
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",
|