remult 0.27.24-next.1 → 0.27.24-next.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.
- package/esm/src/data-api.js +3 -0
- package/package.json +1 -1
- package/src/data-api.js +5 -1
package/esm/src/data-api.js
CHANGED
|
@@ -173,6 +173,9 @@ export class DataApi {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
async groupBy(request, body) {
|
|
176
|
+
if (!this.repository.metadata.apiReadAllowed) {
|
|
177
|
+
throw new ForbiddenError();
|
|
178
|
+
}
|
|
176
179
|
let findOptions = await this.findOptionsFromRequest(request, body);
|
|
177
180
|
let orderBy = {};
|
|
178
181
|
if (body?.orderBy) {
|
package/package.json
CHANGED
package/src/data-api.js
CHANGED
|
@@ -354,7 +354,11 @@ var DataApi = /** @class */ (function () {
|
|
|
354
354
|
var _f, _g, _h, _j, _k, _l;
|
|
355
355
|
return tslib_1.__generator(this, function (_m) {
|
|
356
356
|
switch (_m.label) {
|
|
357
|
-
case 0:
|
|
357
|
+
case 0:
|
|
358
|
+
if (!this.repository.metadata.apiReadAllowed) {
|
|
359
|
+
throw new server_action_js_1.ForbiddenError();
|
|
360
|
+
}
|
|
361
|
+
return [4 /*yield*/, this.findOptionsFromRequest(request, body)];
|
|
358
362
|
case 1:
|
|
359
363
|
findOptions = _m.sent();
|
|
360
364
|
orderBy = {};
|